From b4955ce1f04875c6397d85329612e5832e64b485 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 31 May 2018 10:51:22 -0400 Subject: [PATCH] Revert "fixup! utils: add function for running program" This reverts commit 78cf571066c4220f59df0861c8716f51e9f77fa6. --- src/libply/ply-utils.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libply/ply-utils.c b/src/libply/ply-utils.c index ba9fd1ea..9d2e6ff6 100644 --- a/src/libply/ply-utils.c +++ b/src/libply/ply-utils.c @@ -33,7 +33,6 @@ #include #include #include -#include #include #include #include @@ -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; } -- 2.47.3