summaryrefslogtreecommitdiff
path: root/trafgen.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-04-30 10:42:29 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-04-30 10:42:29 +0200
commite7c6de80086ee33a20176669a70050c036db0d2f (patch)
tree6807a15c9d7b9081fa58a9bcb3894726b756a698 /trafgen.c
parent025dc005c366f4df67651df61f282f1e8a301463 (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>
Diffstat (limited to 'trafgen.c')
-rw-r--r--trafgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen.c b/trafgen.c
index 66be7d6..a3a5bb9 100644
--- a/trafgen.c
+++ b/trafgen.c
@@ -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) {