Loading src/main.c +3 −3 Original line number Diff line number Diff line Loading @@ -999,9 +999,8 @@ static int str2num(long *val, char *str) static int str2offset(off_t *val, char *str) { #if SIZEOF_OFF_T > 4 /* Ugly, but without going through a bunch of rigamarole, * we don't have the definitions for LLONG_{MIN,MAX} or * LONG_LONG_{MIN,MAX}. /* Ugly, but without going through a bunch of rigmarole, we don't have the * definitions for LLONG_{MIN,MAX} or LONG_LONG_{MIN,MAX}. */ #ifndef LLONG_MAX #define LLONG_MAX (off_t)0x7FFFFFFFFFFFFFFFLL Loading @@ -1012,6 +1011,7 @@ static int str2offset(off_t *val, char *str) *val = strtoll(str, NULL, 0); #else /* TODO: Handle strtoll stuff...sigh... */ #error "lack of strtoll() needs fixing" #endif if ((*val == LLONG_MAX || *val == LLONG_MIN) && errno == ERANGE) Loading Loading
src/main.c +3 −3 Original line number Diff line number Diff line Loading @@ -999,9 +999,8 @@ static int str2num(long *val, char *str) static int str2offset(off_t *val, char *str) { #if SIZEOF_OFF_T > 4 /* Ugly, but without going through a bunch of rigamarole, * we don't have the definitions for LLONG_{MIN,MAX} or * LONG_LONG_{MIN,MAX}. /* Ugly, but without going through a bunch of rigmarole, we don't have the * definitions for LLONG_{MIN,MAX} or LONG_LONG_{MIN,MAX}. */ #ifndef LLONG_MAX #define LLONG_MAX (off_t)0x7FFFFFFFFFFFFFFFLL Loading @@ -1012,6 +1011,7 @@ static int str2offset(off_t *val, char *str) *val = strtoll(str, NULL, 0); #else /* TODO: Handle strtoll stuff...sigh... */ #error "lack of strtoll() needs fixing" #endif if ((*val == LLONG_MAX || *val == LLONG_MIN) && errno == ERANGE) Loading