aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-15 07:09:23 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-15 07:09:23 +0000
commit846d203d3155eb98ebe4133a215b3b3aa2ec0b1d (patch)
treef0fcfb01c4f1383a5a17b62d00710dd7cb75f909 /src
parent7561cbda0a876b399386b428d654e57bd5bab325 (diff)
spell-fixed a comment
now errors out if built with off_t > 32 bits but without strtoll()
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index bd757a554..fb2f8e20c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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
@@ -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)