Fix a bunch of compiler warnings about wrong format types.
[ira/wip.git] / source3 / utils / status.c
index 831bdcca185746249db8f001a35fc337a8a2170a..cbf0dcb2b5a283270256ef021fec5435f31d6f9e 100644 (file)
@@ -258,8 +258,8 @@ static int traverse_sessionid(struct db_record *db, void *state)
 
        Ucrit_addPid( sessionid.pid );
 
-       fstr_sprintf(uid_str, "%d", sessionid.uid);
-       fstr_sprintf(gid_str, "%d", sessionid.gid);
+       fstr_sprintf(uid_str, "%u", (unsigned int)sessionid.uid);
+       fstr_sprintf(gid_str, "%u", (unsigned int)sessionid.gid);
 
        d_printf("%-7s   %-12s  %-12s  %-12s (%s)\n",
                 procid_str_static(&sessionid.pid),