From 4dda2b162fdab27197f371bb85842da581aee834 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 25 Sep 2012 11:45:31 +0000 Subject: -Wall cleanup --- src/uanytun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/uanytun.c') diff --git a/src/uanytun.c b/src/uanytun.c index be67d77..d804d05 100644 --- a/src/uanytun.c +++ b/src/uanytun.c @@ -236,7 +236,7 @@ int main_loop(tun_device_t* dev, udp_t* sock, options_t* opt) int return_value = 0; int sig_fd = signal_init(); if(sig_fd < 0) - return_value -1; + return_value = -1; FD_SET(sig_fd, &readfds); nfds = (nfds < sig_fd) ? sig_fd : nfds; @@ -372,7 +372,7 @@ int main(int argc, char* argv[]) log_printf(NOTICE, "executing post-up script '%s'", opt.post_up_script_); char* const argv[] = { opt.post_up_script_, dev.actual_name_, NULL }; char* const evp[] = { NULL }; - int ret = uanytun_exec(opt.post_up_script_, argv, evp); + uanytun_exec(opt.post_up_script_, argv, evp); } -- cgit v1.2.3