mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-14 15:20:04 +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)
|
||||
/* Bogus category: bogus item. */
|
||||
return "";
|
||||
return (char *) "";
|
||||
|
||||
data = *_nl_current[category];
|
||||
|
||||
if (index >= data->nstrings)
|
||||
/* Bogus index for this category: bogus item. */
|
||||
return "";
|
||||
return (char *) "";
|
||||
|
||||
/* Return the string for the specified item. */
|
||||
return (char *) data->values[index].string;
|
||||
|
Loading…
Reference in New Issue
Block a user