summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-10-21 09:52:04 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-10-21 09:52:04 +0000
commitd0a43ed93fcb351d32db4c880ddb6ddff7a6dae3 (patch)
tree026b3dade04671e24e2eba5a2659068063b1a6e4
parent4b5394e5db6863e241e0cb1918ccedabf45890bb (diff)
Workaround to allow this directory to IMA compile. Someone w/ better understanding, please try to rework this by using only one copy of sp_off
-rw-r--r--libc/pwd_grp/pwd_grp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/pwd_grp/pwd_grp.c b/libc/pwd_grp/pwd_grp.c
index 068c3ba94..0225c6c7e 100644
--- a/libc/pwd_grp/pwd_grp.c
+++ b/libc/pwd_grp/pwd_grp.c
@@ -765,7 +765,7 @@ int putgrent(const struct group *__restrict p, FILE *__restrict f)
/**********************************************************************/
#ifdef L_putspent
-static const unsigned char sp_off[] = {
+static const unsigned char _sp_off[] = {
offsetof(struct spwd, sp_lstchg), /* 2 - not a char ptr */
offsetof(struct spwd, sp_min), /* 3 - not a char ptr */
offsetof(struct spwd, sp_max), /* 4 - not a char ptr */
@@ -793,9 +793,9 @@ int putspent(const struct spwd *p, FILE *stream)
goto DO_UNLOCK;
}
- for (i=0 ; i < sizeof(sp_off) ; i++) {
+ for (i=0 ; i < sizeof(_sp_off) ; i++) {
f = ld_format;
- if ((x = *(const long int *)(((const char *) p) + sp_off[i])) == -1) {
+ if ((x = *(const long int *)(((const char *) p) + _sp_off[i])) == -1) {
f += 3;
}
if (fprintf(stream, f, x) < 0) {