Maximum memory and operations now both uint32

This commit is contained in:
Chris Oei 2012-09-02 20:19:20 -07:00
parent d496cad407
commit 162bda494e
3 changed files with 9 additions and 9 deletions

6
main.c
View file

@ -51,8 +51,8 @@ main(int argc, char *argv[])
FILE * infile = NULL;
FILE * outfile = stdout;
int dec = 0;
size_t maxmem = 1000;
int megaops = 5;
uint32_t maxmem = 1000;
uint32_t megaops = 5;
char ch;
char * passwd;
int rc;
@ -69,7 +69,7 @@ main(int argc, char *argv[])
while ((ch = getopt(argc, argv, "hm:o:")) != -1) {
switch (ch) {
case 'm':
maxmem = strtoumax(optarg, NULL, 0);
maxmem = atoi(optarg);
break;
case 'o':
megaops = atoi(optarg);