Browse code

plugin, down-root: Fix compiler warnings

Removed a few compiler warnings:
down-root.c:164:4: warning: implicit declaration of function 'warn'
[-Wimplicit-function-declaration]
down-root.c:239:5: warning: implicit declaration of function 'err'
[-Wimplicit-function-declaration]
down-root.c:461:7: warning: unused variable 'i' [-Wunused-variable]
down-root.c:460:15: warning: unused variable 'p' [-Wunused-variable]

Signed-off-by: David Sommerseth <davids@redhat.com>
Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: 1418074541-24987-1-git-send-email-openvpn.list@topphemmelig.net
URL: http://article.gmane.org/gmane.network.openvpn.devel/9327

David Sommerseth authored on 2014/12/09 06:31:15
Showing 1 changed files
... ...
@@ -42,6 +42,7 @@
42 42
 #include <signal.h>
43 43
 #include <syslog.h>
44 44
 #include <errno.h>
45
+#include <err.h>
45 46
 
46 47
 #include <openvpn-plugin.h>
47 48
 
... ...
@@ -457,9 +458,6 @@ openvpn_plugin_abort_v1 (openvpn_plugin_handle_t handle)
457 457
 static void
458 458
 down_root_server (const int fd, char * const *argv, char * const *envp, const int verb)
459 459
 {
460
-  const char *p[3];
461
-  int i;
462
-
463 460
   /*
464 461
    * Do initialization
465 462
    */