summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cansequence.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/cansequence.c b/src/cansequence.c
index 8f90ee4..d7285f9 100644
--- a/src/cansequence.c
+++ b/src/cansequence.c
@@ -133,11 +133,8 @@ int main(int argc, char **argv)
}
}
- if (argv[optind] == NULL) {
- fprintf(stderr, "No Interface supplied\n");
- exit(-1);
- }
- interface = argv[optind];
+ if (argv[optind] != NULL)
+ interface = argv[optind];
printf("interface = %s, family = %d, type = %d, proto = %d\n",
interface, family, type, proto);