Browse Source

Clean up a comparison warning.

Davin McCall 6 years ago
parent
commit
08c5387694
1 changed files with 1 additions and 1 deletions
  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;
     }