Minor changes from review of last PR

This commit is contained in:
Gregory Nutt 2016-10-19 11:50:19 -06:00
parent 8039173c9e
commit 97b3240737

View File

@ -40,10 +40,10 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <sys/types.h> #include <sys/types.h>
#include <string.h>
#include <locale.h> #include <locale.h>
#ifdef CONFIG_LIBC_LOCALE #ifdef CONFIG_LIBC_LOCALE
#include <string.h>
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions
@ -63,7 +63,6 @@
FAR char *setlocale(int category, FAR const char *locale) FAR char *setlocale(int category, FAR const char *locale)
{ {
return ((strcmp(locale, "POSIX") == 0 || strcmp(locale, "C") == 0 || return ((strcmp(locale, "POSIX") == 0 || strcmp(locale, "C") == 0 ||
strcmp(locale, "") == 0) ? "C" : NULL); strcmp(locale, "") == 0) ? "C" : NULL);
} }