Browse Source

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

Guillem Jover 15 years ago
parent
commit
9805ef20eb
1 changed files with 1 additions and 1 deletions
  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;
 	struct proc_stat *ps;
 
 
 	ps = get_proc_stat(pid, PSTAT_OWNER_UID);
 	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)
 #elif defined(OShpux)
 static bool
 static bool