svn commit: samba r16747 - in trunk/source/nsswitch: .

vlendec at samba.org vlendec at samba.org
Sat Jul 1 17:18:39 GMT 2006


Author: vlendec
Date: 2006-07-01 17:18:39 +0000 (Sat, 01 Jul 2006)
New Revision: 16747

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16747

Log:
Trying to get warnings down (and also trying to understand C....)

Apparently pointers to data objects and pointers to functions don't
necessarily need to have the same representation. The only reason for this I
can possibly imagine is backwards compatibility to some MS-DOS memory models
where function pointers might have 32 bit whereas data pointers might have 16
bit.

So I've got a question: Is there a general type specification for "This is a
function, don't look at any function signature!" in standard C?

Volker

Modified:
   trunk/source/nsswitch/winbindd_async.c


Changeset:
Modified: trunk/source/nsswitch/winbindd_async.c
===================================================================
--- trunk/source/nsswitch/winbindd_async.c	2006-07-01 16:56:13 UTC (rev 16746)
+++ trunk/source/nsswitch/winbindd_async.c	2006-07-01 17:18:39 UTC (rev 16747)
@@ -310,7 +310,7 @@
 	request.cmd = WINBINDD_DUAL_NAME2UID;
 	fstrcpy(request.data.username, name);
 	do_async(mem_ctx, idmap_child(), &request, name2uid_recv,
-		 cont, private_data);
+		 (void *)cont, private_data);
 }
 
 enum winbindd_result winbindd_dual_name2uid(struct winbindd_domain *domain,
@@ -374,7 +374,7 @@
 
 	request.data.dual_sid2id.alloc = alloc;
 	do_async(mem_ctx, idmap_child(), &request, idmap_sid2gid_recv,
-		 cont, private_data);
+		 (void *)cont, private_data);
 }
 
 enum winbindd_result winbindd_dual_sid2gid(struct winbindd_domain *domain,
@@ -465,7 +465,7 @@
 	request.cmd = WINBINDD_DUAL_GID2NAME;
 	request.data.gid = gid;
 	do_async(mem_ctx, idmap_child(), &request, gid2name_recv,
-		 cont, private_data);
+		 (void *)cont, private_data);
 }
 
 enum winbindd_result winbindd_dual_gid2name(struct winbindd_domain *domain,
@@ -498,7 +498,7 @@
 	request.cmd = WINBINDD_DUAL_NAME2GID;
 	fstrcpy(request.data.groupname, name);
 	do_async(mem_ctx, idmap_child(), &request, name2gid_recv,
-		 cont, private_data);
+		 (void *)cont, private_data);
 }
 
 enum winbindd_result winbindd_dual_name2gid(struct winbindd_domain *domain,
@@ -593,7 +593,7 @@
 	fstrcpy(request.data.sid, sid_string_static(sid));
 
 	do_async_domain(mem_ctx, domain, &request, lookupsid_recv,
-			cont, private_data);
+			(void *)cont, private_data);
 }
 
 enum winbindd_result winbindd_dual_lookupsid(struct winbindd_domain *domain,
@@ -686,7 +686,7 @@
 	fstrcpy(request.data.name.name, name);
 
 	do_async_domain(mem_ctx, domain, &request, lookupname_recv,
-			cont, private_data);
+			(void *)cont, private_data);
 }
 
 enum winbindd_result winbindd_dual_lookupname(struct winbindd_domain *domain,
@@ -929,7 +929,7 @@
 	request.extra_data.data = sidstr;
 
 	do_async_domain(mem_ctx, domain, &request, getsidaliases_recv,
-			cont, private_data);
+			(void *)cont, private_data);
 }
 
 enum winbindd_result winbindd_dual_getsidaliases(struct winbindd_domain *domain,
@@ -1520,5 +1520,5 @@
 	request.cmd = WINBINDD_DUAL_USERINFO;
 	sid_to_string(request.data.sid, sid);
 	do_async_domain(mem_ctx, domain, &request, query_user_recv,
-			cont, private_data);
+			(void *)cont, private_data);
 }



More information about the samba-cvs mailing list