summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libc')
-rw-r--r--usr/src/lib/libc/port/gen/nlspath_checks.c4
-rw-r--r--usr/src/lib/libc/port/locale/localeimpl.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/usr/src/lib/libc/port/gen/nlspath_checks.c b/usr/src/lib/libc/port/gen/nlspath_checks.c
index fb63ec8e6a..f06b564cb0 100644
--- a/usr/src/lib/libc/port/gen/nlspath_checks.c
+++ b/usr/src/lib/libc/port/gen/nlspath_checks.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "lint.h"
#include "mtlib.h"
#include <string.h>
@@ -626,7 +624,7 @@ clean_env(void)
else if (issetugid()) { /* Found and set-uid, clean */
int off = 1;
- for (p++; (p[-off] = p[0]) != '\0'; p++)
+ for (p++; (p[-off] = p[0]) != NULL; p++)
if (**p == 'N' && nvmatch("NLSPATH", *p) != NULL)
off++;
diff --git a/usr/src/lib/libc/port/locale/localeimpl.c b/usr/src/lib/libc/port/locale/localeimpl.c
index f7e3ab240f..9083e0f16b 100644
--- a/usr/src/lib/libc/port/locale/localeimpl.c
+++ b/usr/src/lib/libc/port/locale/localeimpl.c
@@ -146,7 +146,7 @@ static char *categories[7] = {
* Prototypes.
*/
static const char *get_locale_env(int);
-static struct locdata *locdata_get(int, const const char *);
+static struct locdata *locdata_get(int, const char *);
static struct locdata *locdata_get_cache(int, const char *);
static locale_t mklocname(locale_t);