diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-05-27 17:54:26 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-05-27 17:54:26 +0200 |
commit | 116420b953d605297dba1827e71ff8eafc99a765 (patch) | |
tree | a7da93cf749f49c81108ff80651d52193ec9562f /ifpps.c | |
parent | 658e32a974aa180f32c920af29f4d293daba7492 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |