Преглед изворни кода

Clean up a comparison warning.

Davin McCall пре 6 година
родитељ
комит
08c5387694
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/run-child-proc.cc

+ 1 - 1
src/run-child-proc.cc

@@ -120,7 +120,7 @@ void service_record::run_child_proc(const char * const *args, const char *logfil
         tcsetpgrp(0, getpgrp());
     }
 
-    if (uid != -1) {
+    if (uid != uid_t(-1)) {
         if (setreuid(uid, uid) != 0) goto failure_out;
         if (setregid(gid, gid) != 0) goto failure_out;
     }