From 4176fdf0b64f068d123a0d960beb1eb5708f3e7b Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Tue, 19 Dec 2017 20:06:25 +0100 Subject: ptunnel-ng: * naming * typ0 fixed --- src/options.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/options.c') diff --git a/src/options.c b/src/options.c index bcbc98f..01a98db 100644 --- a/src/options.c +++ b/src/options.c @@ -72,7 +72,7 @@ static const struct option_usage usage[] = { }, /** --libpcap */ {"interface", 0, OPT_STR, {.str = "eth0"}, -#ifdef HAVE_PCAP +#ifndef HAVE_PCAP "(Not available on this platform.)\n" #endif "Enable libpcap on the given device.\n" @@ -222,9 +222,7 @@ static void set_options_defaults(void) { errno = 0; tmp = *(char **) get_default_optval(OPT_STR, "group"); - if (NULL == (grnam = getgrnam(tmp))) - pt_log(kLog_error, "%s: %s\n", tmp, errno ? strerror(errno) : "unknown group"); - else + if (NULL != (grnam = getgrnam(tmp))) opts.gid = grnam->gr_gid; opts.root_dir = strdup(*(char **)get_default_optval(OPT_STR, "chroot")); -- cgit v1.2.3