From ee8c45689526ca973407cbb77bce7b96a062c40b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 12 Aug 2014 01:41:42 +0200 Subject: networkd: add minimal client tool "networkd" to query network status In the long run this should become a full fledged client to networkd (but not before networkd learns bus support). For now, just pull interesting data out of networkd, udev, and rtnl and present it to the user, in a simple but useful output. --- src/notify/notify.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/notify') diff --git a/src/notify/notify.c b/src/notify/notify.c index 2148ae0dfe..6f1c52e3fb 100644 --- a/src/notify/notify.c +++ b/src/notify/notify.c @@ -82,7 +82,7 @@ static int parse_argv(int argc, char *argv[]) { assert(argc >= 0); assert(argv); - while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0) + while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0) { switch (c) { @@ -129,6 +129,7 @@ static int parse_argv(int argc, char *argv[]) { default: assert_not_reached("Unhandled option"); } + } if (optind >= argc && !arg_ready && -- cgit v1.2.3-54-g00ecf