blob: 1f576fa7102a64670ae3a359f251b84925613806 [file] [log] [blame]
Patrick Williamsddad1a12017-02-23 20:36:32 -06001From ce5f5563ab54db9d28dba44a0e25e8a8c7bb9876 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 19 Oct 2016 00:34:35 +0000
4Subject: [PATCH] test/pppd_dummy.c: Fix return value
5
6pause() is defined in unistd.h, clang does not
7like the fact that we are using a function without
8declaration
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 test/pppd_dummy.c | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
14
15diff --git a/test/pppd_dummy.c b/test/pppd_dummy.c
16index 148e7d2..b564c36 100644
17--- a/test/pppd_dummy.c
18+++ b/test/pppd_dummy.c
19@@ -26,6 +26,7 @@
20 #include <sys/types.h>
21 #include <sys/wait.h>
22 #include <syslog.h>
23+#include <unistd.h>
24
25 #define PPPD_DUMMY_TMP_FILE "/tmp/pppd_dummy"
26
27@@ -40,7 +41,7 @@ int main(int argc, char **argv)
28
29 if (file == NULL) {
30 syslog(LOG_ERR, "Failed to open %s\n", filename);
31- return;
32+ return -1;
33 }
34
35 for (arg = 1; arg < argc; arg++) {
36--
371.9.1
38