This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author henry.precheur
Recipients henry.precheur
Date 2009-07-04.21:39:25
SpamBayes Score 2.0958157e-06
Marked as misclassified No
Message-id <1246743567.03.0.331926957573.issue6420@psf.upfronthosting.co.za>
In-reply-to
Content
On OpenBSD the file /usr/include/rpcsvc/ypclnt.h contains the following
declaration:

struct ypall_callback {
	/* return non-0 to stop getting called */
	int (*foreach)(unsigned long, char *, int, char *, int, void *);
	char *data;		/* opaque pointer for use of callback fn */
};

the 'foreach' function pointer's declaration in Modules/nismodule.c is
different:

gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -I. -I./Include -I/usr/local/include -IInclude
-I/home/henry/py3k -c /home/henry/py3k/Modules/nismodule.c -o
build/temp.openbsd-4.6-amd64-3.2/home/henry/py3k/Modules/nismodule.o
/home/henry/py3k/Modules/nismodule.c: In function `nis_cat':
/home/henry/py3k/Modules/nismodule.c:208: warning: assignment from
incompatible pointer type


The attached patch fixes this very important issue :)
History
Date User Action Args
2009-07-04 21:39:27henry.precheursetrecipients: + henry.precheur
2009-07-04 21:39:27henry.precheursetmessageid: <1246743567.03.0.331926957573.issue6420@psf.upfronthosting.co.za>
2009-07-04 21:39:25henry.precheurlinkissue6420 messages
2009-07-04 21:39:25henry.precheurcreate