This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch for initgroups



I now get this warning:
initgroups.c:207: warning: passing arg 5 of pointer to function from incompatible pointer type

A patch is appended.  Uli, is this one correct?  Shall I commit it?

Andreas

2000-07-24  Andreas Jaeger  <aj@suse.de>

	* grp/initgroups.c (initgroups_dyn_function): Renamed from
	initgroups_function, adopted prototype for change from 2000-07-23.
	(initgroups): Follow type change.

============================================================
Index: grp/initgroups.c
--- grp/initgroups.c	2000/07/24 01:45:36	1.21
+++ grp/initgroups.c	2000/07/24 14:10:17
@@ -27,9 +27,9 @@
 #include <nsswitch.h>
 
 /* Type of the lookup function.  */
-typedef enum nss_status (*initgroups_function) (const char *, gid_t,
-						long int *, long int *,
-						gid_t *, long int, int *);
+typedef enum nss_status (*initgroups_dyn_function) (const char *, gid_t,
+						    long int *, long int *,
+						    gid_t **, long int, int *);
 /* Prototype for the setgrent functions we use here.  */
 typedef enum nss_status (*set_function) (void);
 
@@ -152,7 +152,7 @@
 #else
 
   service_user *nip = NULL;
-  initgroups_function fct;
+  initgroups_dyn_function fct;
   enum nss_status status = NSS_STATUS_UNAVAIL;
   int no_more;
   /* Start is one, because we have the first group as parameter.  */

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]