Show
Ignore:
Timestamp:
04/15/08 10:29:48 (6 months ago)
Author:
karpet
Message:

use our string_to_int instead of strtol() directly

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libswish3/trunk/src/xapian/swish_xapian.cpp

    r2112 r2129  
    622622                err(1, "-d option requires a positive integer as argument\n"); 
    623623 
    624             SWISH_DEBUG = (int)strtol(optarg, (char **)NULL, 10); 
     624            SWISH_DEBUG = swish_string_to_int(optarg); 
    625625            break; 
    626626 
     
    634634 
    635635        case 's': 
    636             skip_duplicates = (int)strtol(optarg, (char **)NULL, 10); 
     636            skip_duplicates = swish_string_to_int(optarg); 
    637637            break; 
    638638