Add casts to prevent warnings.

This commit is contained in:
Ulrich Drepper 2000-02-13 07:22:14 +00:00
parent db2b73113b
commit bfc93b849d

View File

@ -35,13 +35,13 @@ nl_langinfo (item)
if (category < 0 || category >= LC_ALL) if (category < 0 || category >= LC_ALL)
/* Bogus category: bogus item. */ /* Bogus category: bogus item. */
return ""; return (char *) "";
data = *_nl_current[category]; data = *_nl_current[category];
if (index >= data->nstrings) if (index >= data->nstrings)
/* Bogus index for this category: bogus item. */ /* Bogus index for this category: bogus item. */
return ""; return (char *) "";
/* Return the string for the specified item. */ /* Return the string for the specified item. */
return (char *) data->values[index].string; return (char *) data->values[index].string;