svn commit: trunk/uClibc/libc/pwd_grp

psm at uclibc.org psm at uclibc.org
Fri Oct 21 09:52:06 UTC 2005


Author: psm
Date: 2005-10-21 02:52:04 -0700 (Fri, 21 Oct 2005)
New Revision: 11904

Log:
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

Modified:
   trunk/uClibc/libc/pwd_grp/pwd_grp.c


Changeset:
Modified: trunk/uClibc/libc/pwd_grp/pwd_grp.c
===================================================================
--- trunk/uClibc/libc/pwd_grp/pwd_grp.c	2005-10-21 09:47:48 UTC (rev 11903)
+++ trunk/uClibc/libc/pwd_grp/pwd_grp.c	2005-10-21 09:52:04 UTC (rev 11904)
@@ -765,7 +765,7 @@
 /**********************************************************************/
 #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 @@
 		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) {




More information about the uClibc-cvs mailing list