svn commit: samba r5950 - in branches/SAMBA_3_0/source: printing rpc_server

jerry at samba.org jerry at samba.org
Tue Mar 22 14:54:13 GMT 2005


Author: jerry
Date: 2005-03-22 14:54:12 +0000 (Tue, 22 Mar 2005)
New Revision: 5950

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

Log:
more compiler warning's from Jason Mader
Modified:
   branches/SAMBA_3_0/source/printing/printing.c
   branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c


Changeset:
Modified: branches/SAMBA_3_0/source/printing/printing.c
===================================================================
--- branches/SAMBA_3_0/source/printing/printing.c	2005-03-22 14:49:11 UTC (rev 5949)
+++ branches/SAMBA_3_0/source/printing/printing.c	2005-03-22 14:54:12 UTC (rev 5950)
@@ -235,7 +235,7 @@
  when asked for (and only when supported)
 ****************************************************************************/
 
-static struct printif *get_printer_fns_from_type( enum printing_types type )
+static struct printif *get_printer_fns_from_type( int type )
 {
 	struct printif *printer_fns = &generic_printif;
 
@@ -1379,7 +1379,7 @@
 	size_t len = 0;
 	size_t newlen;
 	struct tdb_print_db *pdb;
-	enum printing_types type;
+	int type;
 	struct printif *current_printif;
 
 	fstrcpy( sharename, lp_const_servicename(snum));

Modified: branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c	2005-03-22 14:49:11 UTC (rev 5949)
+++ branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c	2005-03-22 14:54:12 UTC (rev 5950)
@@ -1977,7 +1977,7 @@
 	DOM_GID *gids = NULL;
 	int num_groups = 0;
 	gid_t *unix_gids;
-	int i, num_gids, num_sids;
+	int i, num_gids;
 	uint32 acc_granted;
 	BOOL ret;
 	NTSTATUS result;
@@ -2027,7 +2027,6 @@
 	}
 
 	sids = NULL;
-	num_sids = 0;
 
 	become_root();
 	result = pdb_enum_group_memberships(pdb_get_username(sam_pass),
@@ -4119,7 +4118,6 @@
 	DOM_SID dom_sid;
 	DOM_SID info_sid;
 	fstring name;
-	struct group *grp;
 	struct samr_info *info;
 	uint32 acc_granted;
 	gid_t gid;
@@ -4166,7 +4164,7 @@
 		return NT_STATUS_ACCESS_DENIED;
 
 	/* check if the group has been successfully created */
-	if ((grp=getgrgid(gid)) == NULL)
+	if ( getgrgid(gid) == NULL )
 		return NT_STATUS_ACCESS_DENIED;
 
 	if ((info = get_samr_info_by_sid(&info_sid)) == NULL)



More information about the samba-cvs mailing list