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
1 changed files with 3 additions and 4 deletions

View File

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