summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2008-09-29 11:20:54 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2008-09-29 11:20:54 +0000
commit25265d3a021710ea608b5ea8847b37b820c5058f (patch)
tree4ab1d8fbe82c3234ae0aa265a3114c10ca04cfad
parent917444312a72e8243586efea3737d916872a3bc7 (diff)
downloadcanutils-25265d3a021710ea608b5ea8847b37b820c5058f.tar.gz
git-svn-id: https://iocaste.extern.pengutronix.de/svn/canutils/trunks/canutils-3.0-trunk@98 5fd5a299-6ef2-0310-aa18-8b01d7c39d8c
-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);