diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-04-30 10:42:29 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2014-04-30 10:42:29 +0200 |
commit | e7c6de80086ee33a20176669a70050c036db0d2f (patch) | |
tree | 6807a15c9d7b9081fa58a9bcb3894726b756a698 | |
parent | 025dc005c366f4df67651df61f282f1e8a301463 (diff) |
trafgen: Use strtoul() instead of strtol() for unsigned long
If setting an unsigned long variable, use strtoul() instead of strtol().
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | trafgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1010,7 +1010,7 @@ int main(int argc, char **argv) else panic("Syntax error in ring size param!\n"); - ctx.reserve_size *= strtol(optarg, NULL, 0); + ctx.reserve_size *= strtoul(optarg, NULL, 0); break; case '?': switch (optopt) { |