Eliminate compiler warning.

This commit is contained in:
archie 1999-12-01 22:56:51 +00:00
parent 8e6dc36b73
commit 22ba679083
4 changed files with 4 additions and 4 deletions

View File

@ -127,6 +127,6 @@ strtol(nptr, endptr, base)
} else if (neg)
acc = -acc;
if (endptr != 0)
*endptr = (char *)(any ? s - 1 : nptr);
*((const char **)endptr) = any ? s - 1 : nptr;
return (acc);
}

View File

@ -128,6 +128,6 @@ strtoq(const char *nptr, char **endptr, int base)
} else if (neg)
acc = -acc;
if (endptr != 0)
*endptr = (char *)(any ? s - 1 : nptr);
*((const char **)endptr) = any ? s - 1 : nptr;
return (acc);
}

View File

@ -106,6 +106,6 @@ strtoul(nptr, endptr, base)
} else if (neg)
acc = -acc;
if (endptr != 0)
*endptr = (char *)(any ? s - 1 : nptr);
*((const char **)endptr) = any ? s - 1 : nptr;
return (acc);
}

View File

@ -106,6 +106,6 @@ strtouq(const char *nptr, char **endptr, int base)
} else if (neg)
acc = -acc;
if (endptr != 0)
*endptr = (char *)(any ? s - 1 : nptr);
*((const char **)endptr) = any ? s - 1 : nptr;
return (acc);
}