mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-14 23:30:06 +00:00
Add casts to prevent warnings.
This commit is contained in:
parent
db2b73113b
commit
bfc93b849d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user