diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-11-16 16:26:31 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-11-16 16:26:31 +0000 |
commit | 915af2719420470cf09ba7bcd70cec8eeb76c7d6 (patch) | |
tree | 6abf46895fd94ea397aee904f936c37b3900471b | |
parent | 4e73ac8b8b53ffbe421dd56aa50955cee85b1cc2 (diff) |
-use execlp
-rw-r--r-- | src/transport/gnunet-transport-wlan-receiver.c | 2 | ||||
-rw-r--r-- | src/transport/gnunet-transport-wlan-sender.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/gnunet-transport-wlan-receiver.c b/src/transport/gnunet-transport-wlan-receiver.c index 22ad2e20d..73ca83ddc 100644 --- a/src/transport/gnunet-transport-wlan-receiver.c +++ b/src/transport/gnunet-transport-wlan-receiver.c @@ -101,7 +101,7 @@ main (int argc, char *argv[]) fprintf (stderr, "dup2 failed: %s\n", strerror (errno)); (void) close (commpipe[0]); /* Close unused side of pipe (in side) */ /* Replace the child fork with a new process */ - if (execl + if (execlp ("gnunet-helper-transport-wlan", "gnunet-helper-transport-wlan", argv[1], NULL) == -1) { diff --git a/src/transport/gnunet-transport-wlan-sender.c b/src/transport/gnunet-transport-wlan-sender.c index c5718b858..23561fada 100644 --- a/src/transport/gnunet-transport-wlan-sender.c +++ b/src/transport/gnunet-transport-wlan-sender.c @@ -204,7 +204,7 @@ main (int argc, char *argv[]) fprintf (stderr, "dup2 failed: %s\n", strerror (errno)); (void) close (commpipe[1]); /* Close unused side of pipe (out side) */ /* Replace the child fork with a new process */ - if (execl + if (execlp ("gnunet-helper-transport-wlan", "gnunet-helper-transport-wlan", argv[1], NULL) == -1) { |