]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Revert "fixup! utils: add function for running program"
authorRay Strode <rstrode@redhat.com>
Thu, 31 May 2018 14:51:22 +0000 (10:51 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 31 May 2018 14:52:34 +0000 (10:52 -0400)
This reverts commit 78cf571066c4220f59df0861c8716f51e9f77fa6.

src/libply/ply-utils.c

index ba9fd1eaaf3fdea505c2661638276015035b2169..9d2e6ff693ae6982f6c42ec25092fa0edd771f70 100644 (file)
@@ -33,7 +33,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <spawn.h>
 #include <sys/klog.h>
 #include <sys/mount.h>
 #include <sys/resource.h>
@@ -1021,9 +1020,9 @@ ply_run_program_in_background (const char *program)
 {
         pid_t pid;
         int result;
-        const char *argv[2] = { program, NULL };
+        char argv[2] = { program, NULL };
 
-        result = posix_spawn (&pid, program, NULL, NULL, (char **) argv, NULL);
+        result = posix_spawn (&pid, program, NULL, NULL, argv, NULL);
 
         return result == 0;
 }