diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-05-10 00:13:08 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-05-10 00:13:08 +0200 |
commit | 2dcc54d15d5d864ba98f7d7d857cb74fa3cc5e60 (patch) | |
tree | d49d7731cceb994a3ea79a320e68a8a8c3b79aed /openvpn/src | |
parent | 9b87e180b4956b036917ab81e40d92804bacef8b (diff) | |
parent | e652cd62a450aa4bb284d717a1f0bd1b1d1b86a2 (diff) |
Merge
Diffstat (limited to 'openvpn/src')
-rw-r--r-- | openvpn/src/openvpn/error.c | 15 | ||||
-rw-r--r-- | openvpn/src/openvpn/socket.c | 1 | ||||
-rw-r--r-- | openvpn/src/openvpn/testmain.c | 0 |
3 files changed, 1 insertions, 15 deletions
diff --git a/openvpn/src/openvpn/error.c b/openvpn/src/openvpn/error.c index 83a9eb4b..e2e24b1e 100644 --- a/openvpn/src/openvpn/error.c +++ b/openvpn/src/openvpn/error.c @@ -199,11 +199,6 @@ msg_fp(const unsigned int flags) int x_msg_line_num; /* GLOBAL */ -#include "android/log.h" - - - - void x_msg (const unsigned int flags, const char *format, ...) { struct gc_arena gc; @@ -219,7 +214,6 @@ void x_msg (const unsigned int flags, const char *format, ...) const char *prefix_sep; void usage_small (void); - #ifndef HAVE_VARARG_MACROS /* the macro has checked this otherwise */ @@ -304,12 +298,10 @@ void x_msg (const unsigned int flags, const char *format, ...) if (!prefix) prefix_sep = prefix = ""; - /* virtual output capability used to copy output to management subsystem */ if (!forked) { const struct virtual_output *vo = msg_get_virtual_output (); - if (vo) { openvpn_snprintf (m2, ERR_BUF_SIZE, "%s%s%s", @@ -331,7 +323,7 @@ void x_msg (const unsigned int flags, const char *format, ...) m1); #endif } - else // No Syslog + else { FILE *fp = msg_fp(flags); const bool show_usec = check_debug_level (DEBUG_LEVEL_USEC_TIME); @@ -356,13 +348,8 @@ void x_msg (const unsigned int flags, const char *format, ...) fflush(fp); ++x_msg_line_num; } -#ifdef TARGET_ANDROID - android_openvpn_log(prefix,prefix_sep,m1);; -#endif } - - if (flags & M_FATAL) msg (M_INFO, "Exiting due to fatal error"); diff --git a/openvpn/src/openvpn/socket.c b/openvpn/src/openvpn/socket.c index 71010979..b92c2828 100644 --- a/openvpn/src/openvpn/socket.c +++ b/openvpn/src/openvpn/socket.c @@ -859,7 +859,6 @@ create_socket_tcp (void) msg (M_SOCKERR, "TCP: Cannot setsockopt SO_LINGER on TCP socket"); } #endif - return sd; } diff --git a/openvpn/src/openvpn/testmain.c b/openvpn/src/openvpn/testmain.c new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/openvpn/src/openvpn/testmain.c |