# | Line 60 | Line 60 | char *get_string_match(char *line, regmatch_t *match){ | |
---|---|---|
60 | return match_string; | |
61 | } | |
62 | ||
63 | – | #ifdef HAVE_ATOLL |
63 | long long get_ll_match(char *line, regmatch_t *match){ | |
64 | char *ptr; | |
65 | long long num; | |
66 | ||
67 | ptr=line+match->rm_so; | |
68 | + | #ifdef HAVE_ATOLL |
69 | num=atoll(ptr); | |
70 | + | #else |
71 | + | /* Don't have atoll, so use this bodge instead */ |
72 | + | { |
73 | + | long numl; |
74 | + | numl=atol(ptr); |
75 | + | num=numl; |
76 | + | } |
77 | + | #endif |
78 | ||
79 | return num; | |
80 | } | |
73 | – | #endif |
81 | ||
82 | #ifdef ALLBSD | |
83 | kvm_t *get_kvm() { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |