[fmac-discuss] [PATCH] libc style cleanups
Stephen Smalley
sds at tycho.nsa.gov
Fri Nov 14 07:36:52 PST 2008
Clean up some cstyle -cpP violations introduced by earlier patches in
libc.
diff --git a/usr/src/lib/libc/inc/libc.h b/usr/src/lib/libc/inc/libc.h
--- a/usr/src/lib/libc/inc/libc.h
+++ b/usr/src/lib/libc/inc/libc.h
@@ -72,7 +72,7 @@
extern void callout_lock_exit(void);
extern void *lmalloc(size_t);
extern void lfree(void *, size_t);
-extern int libc_nvlist_alloc(nvlist_t **,uint_t, int);
+extern int libc_nvlist_alloc(nvlist_t **, uint_t, int);
extern void libc_nvlist_free(nvlist_t *);
extern int libc_nvlist_lookup_uint64(nvlist_t *, const char *, uint64_t *);
extern int libc_nvlist_lookup_string(nvlist_t *, const char *, char **);
diff --git a/usr/src/lib/libc/port/gen/attrat.c b/usr/src/lib/libc/port/gen/attrat.c
--- a/usr/src/lib/libc/port/gen/attrat.c
+++ b/usr/src/lib/libc/port/gen/attrat.c
@@ -82,7 +82,7 @@
(freer = dlsym(handle, "nvlist_free")) == NULL ||
(looker = dlsym(handle, "nvlist_lookup_uint64")) == NULL ||
(lookupstr = dlsym(handle, "nvlist_lookup_string"))
- == NULL ||
+ == NULL ||
(addstr = dlsym(handle, "nvlist_add_string")) == NULL) {
if (handle)
dlclose(handle);
diff --git a/usr/src/lib/libc/port/sys/fmacsys.c b/usr/src/lib/libc/port/sys/fmacsys.c
--- a/usr/src/lib/libc/port/sys/fmacsys.c
+++ b/usr/src/lib/libc/port/sys/fmacsys.c
@@ -99,7 +99,7 @@
return (-1);
}
- if (dcontext=strdup(acontext)) {
+ if (dcontext = strdup(acontext)) {
*context = dcontext;
return (0);
} else
@@ -123,7 +123,7 @@
return (-1);
}
- if (dcontext=strdup(acontext)) {
+ if (dcontext = strdup(acontext)) {
*context = dcontext;
return (0);
} else
@@ -152,7 +152,7 @@
return (0);
}
- if (dcontext=strdup(acontext)) {
+ if (dcontext = strdup(acontext)) {
*context = dcontext;
return (0);
} else
@@ -187,7 +187,7 @@
return (0);
}
- if (dcontext=strdup(acontext)) {
+ if (dcontext = strdup(acontext)) {
*context = dcontext;
return (0);
} else
--
Stephen Smalley
National Security Agency
More information about the fmac-discuss
mailing list