summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2008-12-09 11:43:30 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2008-12-09 11:43:30 +0000
commitdf656b2db7e005597bd9b7e415024639e48bbfd4 (patch)
tree0bc3f02128d836d764496139e2835561aae983af
parent2a1cdc6a85a1bb542319099532ca9127abb5097c (diff)
downloadcanutils-df656b2db7e005597bd9b7e415024639e48bbfd4.tar.gz
* src/cansequence.c:
obay loop option git-svn-id: https://iocaste.extern.pengutronix.de/svn/canutils/trunks/canutils-3.0-trunk@104 5fd5a299-6ef2-0310-aa18-8b01d7c39d8c
-rw-r--r--src/cansequence.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cansequence.c b/src/cansequence.c
index d7285f9..48b879a 100644
--- a/src/cansequence.c
+++ b/src/cansequence.c
@@ -105,9 +105,10 @@ int main(int argc, char **argv)
break;
case 'l':
- if (optarg)
+ if (optarg) {
loopcount = strtoul(optarg, NULL, 0);
- else
+ infinite = 0;
+ } else
infinite = 1;
break;