nl_langinfo: Simplify case ladder

The NONE:US-ASCII case isn't necessary.  The "NONE:" case will handle
US-ASCII, so let's remove the redundant handling.

Submitted by:	marino
Obtained from:	DragonflyBSD
This commit is contained in:
Baptiste Daroussin 2015-11-09 22:29:47 +00:00
parent ad3c3dbe18
commit 403105944d

View File

@ -72,8 +72,6 @@ nl_langinfo_l(nl_item item, locale_t loc)
ret = "SJIS";
else if (strcmp(s, "NONE") == 0)
ret = "POSIX";
else if (strcmp(s, "NONE:US-ASCII") == 0)
ret = "US-ASCII";
else if (strncmp(s, "NONE:", 5) == 0)
ret = (char *)(s + 5);
else