From e7c6de80086ee33a20176669a70050c036db0d2f Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 30 Apr 2014 10:42:29 +0200 Subject: [PATCH] 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 --- trafgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trafgen.c b/trafgen.c index 66be7d65..a3a5bb9b 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) { -- 2.11.4.GIT