Commit 9ca93447 authored by Shane Snyder's avatar Shane Snyder

pool-size needs to be unsigned

parent 87213431
...@@ -32,7 +32,7 @@ typedef struct { ...@@ -32,7 +32,7 @@ typedef struct {
typedef struct { typedef struct {
char* listen_addr; char* listen_addr;
char* cluster_file; char* cluster_file;
int pool_size; size_t pool_size;
} mobject_server_options; } mobject_server_options;
static void usage(void) static void usage(void)
...@@ -57,7 +57,7 @@ static void parse_args(int argc, char **argv, mobject_server_options *opts) ...@@ -57,7 +57,7 @@ static void parse_args(int argc, char **argv, mobject_server_options *opts)
switch (c) switch (c)
{ {
case 'p': case 'p':
opts->pool_size = atoi(optarg); opts->pool_size = strtoul(optarg, NULL, 0);
break; break;
default: default:
usage(); usage();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment