Added a cast to NULL to remove a warning issues by g++ 4.6.
authorJonathan Sternberg <jonathansternberg@gmail.com>
Sat, 5 Nov 2011 19:58:51 +0000 (15:58 -0400)
committerJonathan Sternberg <jonathansternberg@gmail.com>
Sat, 5 Nov 2011 19:58:51 +0000 (15:58 -0400)
src/subprocess.cc

index 4426da0..a27b087 100644 (file)
@@ -69,7 +69,7 @@ bool Subprocess::Start(SubprocessSet* set, const string& command) {
       error_pipe = 2;
       close(output_pipe[1]);
 
-      execl("/bin/sh", "/bin/sh", "-c", command.c_str(), NULL);
+      execl("/bin/sh", "/bin/sh", "-c", command.c_str(), (char *) NULL);
     } while (false);
 
     // If we get here, something went wrong; the execl should have