fix argument parsing typo

git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@2447 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
sears 2011-04-22 17:39:28 +00:00
parent ab9cfd1443
commit 38f1793eaa

View file

@ -19,7 +19,7 @@ int main(int argc, char * argv[]) {
char ** orig_argv = argv;
if(argc > 1) {
char * end;
int n = strtod(argv[1], &end);
int n = strtol(argv[1], &end, 10);
if(argv[1][0] && !*end) {
mode = n;
argc--;