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/swish_header.c

    r2097 r2129  
    8686                err(1, "-d option requires a positive integer as argument\n"); 
    8787 
    88             SWISH_DEBUG = (int) strtol(optarg, (char **) NULL, 10); 
     88            SWISH_DEBUG = swish_string_to_int(optarg); 
    8989            break; 
    9090