Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs
[issue6420] Fix warning in nismodule.c on OpenBSD
 

Index | Next | Previous | View Flat


report at bugs

Jul 4, 2009, 2:39 PM


Views: 174
Permalink
[issue6420] Fix warning in nismodule.c on OpenBSD

New submission from Henry Precheur <henry[at]precheur.org>:

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

----------
components: Build, Library (Lib)
files: patch-Modules_nismodule_c
messages: 90128
nosy: henry.precheur
severity: normal
status: open
title: Fix warning in nismodule.c on OpenBSD
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file14450/patch-Modules_nismodule_c

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue6420>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Subject User Time
[issue6420] Fix warning in nismodule.c on OpenBSD report at bugs Jul 4, 2009, 2:39 PM
    [issue6420] Fix warning in nismodule.c on OpenBSD report at bugs Jul 6, 2009, 4:26 PM
    [issue6420] Fix warning in nismodule.c on OpenBSD report at bugs Jul 6, 2009, 4:42 PM
    [issue6420] Fix warning in nismodule.c on OpenBSD report at bugs Jul 6, 2009, 6:00 PM
    [issue6420] Fix warning in nismodule.c on OpenBSD report at bugs Jul 6, 2009, 6:49 PM
    [issue6420] Fix warning in nismodule.c on OpenBSD report at bugs Jul 6, 2009, 11:53 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.