Explorar el Código

s-s-d: Cast proc_stat_owner_uid() to uid_t to fix a warning

Guillem Jover hace 15 años
padre
commit
9805ef20eb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      utils/start-stop-daemon.c

+ 1 - 1
utils/start-stop-daemon.c

@@ -1058,7 +1058,7 @@ pid_is_user(pid_t pid, uid_t uid)
 	struct proc_stat *ps;
 
 	ps = get_proc_stat(pid, PSTAT_OWNER_UID);
-	return ps && proc_stat_owner_uid(ps) == uid;
+	return ps && (uid_t)proc_stat_owner_uid(ps) == uid;
 }
 #elif defined(OShpux)
 static bool