aboutsummaryrefslogtreecommitdiffstats
path: root/src/netreport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/netreport.c')
-rw-r--r--src/netreport.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/netreport.c b/src/netreport.c
index 56088ec1..c11af5a5 100644
--- a/src/netreport.c
+++ b/src/netreport.c
@@ -21,9 +21,12 @@ int main(int argc, char ** argv) {
if (argc > 2) usage();
- if ((argc > 1) && !strcmp(argv[1], "-r")) {
- action = DEL;
- }
+ if (argc > 1)
+ if (!strcmp(argv[1], "-r")) {
+ action = DEL;
+ } else {
+ usage();
+ }
sprintf(netreport_name, "/var/run/netreport/%d", getppid());
if (action == ADD) {