summaryrefslogtreecommitdiff
path: root/src/notify/notify.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-12 01:41:42 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-12 01:54:40 +0200
commitee8c45689526ca973407cbb77bce7b96a062c40b (patch)
tree789e44a352ce3a0a5a88af6339117e8deaff0950 /src/notify/notify.c
parent1cb5d1f31909c731d93568eb4838cb86e033d783 (diff)
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.
Diffstat (limited to 'src/notify/notify.c')
-rw-r--r--src/notify/notify.c3
1 files changed, 2 insertions, 1 deletions
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 &&