From 116420b953d605297dba1827e71ff8eafc99a765 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 27 May 2013 17:54:26 +0200 Subject: 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 --- ifpps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ifpps.c') 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; -- cgit v1.2.3-54-g00ecf