[Python-checkins] python/dist/src/Modules nismodule.c,2.24,2.25

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Sat Jul 10 02:57:39 CEST 2004


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18274/Modules
Modified Files:
	nismodule.c 
Log Message:
Add an #ifdef __APPLE__ around typedef of foreachfunc to match Apple's
incorrect declaration for ypall_callback in /usr/include/rpcsvc/ypcInt.h .
Shouldn't hurt any code since the differences are unsigned long instead of int and
void * instead of char *. Removes warning about improper function pointer
assignment during compilation.
Index: nismodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/nismodule.c,v
retrieving revision 2.24
retrieving revision 2.25
diff -C2 -d -r2.24 -r2.25
*** nismodule.c	4 Nov 2002 23:21:09 -0000	2.24
--- nismodule.c	10 Jul 2004 00:57:37 -0000	2.25
***************
*** 69,73 ****
--- 69,77 ----
 }
 
+ #ifdef __APPLE__
+ typedef int (*foreachfunc)(unsigned long, char *, int, char *, int, void *);
+ #else
 typedef int (*foreachfunc)(int, char *, int, char *, int, char *);
+ #endif
 
 struct ypcallback_data {


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /