summaryrefslogtreecommitdiff
path: root/ifpps.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-05-27 17:54:26 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-05-27 17:54:26 +0200
commit116420b953d605297dba1827e71ff8eafc99a765 (patch)
treea7da93cf749f49c81108ff80651d52193ec9562f /ifpps.c
parent658e32a974aa180f32c920af29f4d293daba7492 (diff)
ifpps: Use strtoul() to convert unsigned value
The refresh interval can only be positive and is stored in an uint64_t, so use strtoul() to convert it. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'ifpps.c')
-rw-r--r--ifpps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ifpps.c b/ifpps.c
index 5bf0d8e..dd03830 100644
--- a/ifpps.c
+++ b/ifpps.c
@@ -1042,7 +1042,7 @@ int main(int argc, char **argv)
ifname = xstrndup(optarg, IFNAMSIZ);
break;
case 't':
- interval = strtol(optarg, NULL, 10);
+ interval = strtoul(optarg, NULL, 10);
break;
case 'l':
stats_loop = 1;