diff options
author | David Sommerseth <davids@redhat.com> | 2014-12-08 22:31:15 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2014-12-08 22:41:45 +0100 |
commit | e2983bf2db3593ee5711066196f8cae5f5e91013 (patch) | |
tree | 4e4c0a16698cd83390e9087d8996fc90313594ab /src | |
parent | d6c5a6037f93c10baecbcde98e249ceb6f863683 (diff) | |
download | openvpn-e2983bf2db3593ee5711066196f8cae5f5e91013.tar.gz openvpn-e2983bf2db3593ee5711066196f8cae5f5e91013.tar.xz openvpn-e2983bf2db3593ee5711066196f8cae5f5e91013.zip |
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
(cherry picked from commit 7dd51f6f50b17ab91cbb724e2d5e96657fab834a)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/down-root/down-root.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/down-root/down-root.c b/src/plugins/down-root/down-root.c index ed2636a..f7a49a0 100644 --- a/src/plugins/down-root/down-root.c +++ b/src/plugins/down-root/down-root.c @@ -42,6 +42,7 @@ #include <signal.h> #include <syslog.h> #include <errno.h> +#include <err.h> #include <openvpn-plugin.h> @@ -457,9 +458,6 @@ openvpn_plugin_abort_v1 (openvpn_plugin_handle_t handle) static void down_root_server (const int fd, char * const *argv, char * const *envp, const int verb) { - const char *p[3]; - int i; - /* * Do initialization */ |