diff options
author | Gerald Carter <jerry@samba.org> | 2005-03-22 14:54:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:10 -0500 |
commit | 9b38ced168d4db50126c4259b31cb15e2ee2231b (patch) | |
tree | 153aa84d768f9f84d144d5a871c749fb96aec9d5 /source3 | |
parent | 40295c41dbba119f6b4e32647fb70f51ebf390a0 (diff) | |
download | samba-9b38ced168d4db50126c4259b31cb15e2ee2231b.tar.gz samba-9b38ced168d4db50126c4259b31cb15e2ee2231b.tar.bz2 samba-9b38ced168d4db50126c4259b31cb15e2ee2231b.zip |
r5950: more compiler warning's from Jason Mader
(This used to be commit 27c6e85ad59a86ab45ae3297c7445c4ff15546c8)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/printing.c | 4 | ||||
-rw-r--r-- | source3/rpc_server/srv_samr_nt.c | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 26d4311770..7a68fa16be 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -235,7 +235,7 @@ void printing_end(void) 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 @@ static void print_queue_update(int snum, BOOL force) 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)); diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index 9e75dd6f7c..b96e160156 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -1977,7 +1977,7 @@ NTSTATUS _samr_query_usergroups(pipes_struct *p, SAMR_Q_QUERY_USERGROUPS *q_u, S 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 @@ NTSTATUS _samr_query_usergroups(pipes_struct *p, SAMR_Q_QUERY_USERGROUPS *q_u, S } sids = NULL; - num_sids = 0; become_root(); result = pdb_enum_group_memberships(pdb_get_username(sam_pass), @@ -4119,7 +4118,6 @@ NTSTATUS _samr_create_dom_alias(pipes_struct *p, SAMR_Q_CREATE_DOM_ALIAS *q_u, S 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 @@ NTSTATUS _samr_create_dom_alias(pipes_struct *p, SAMR_Q_CREATE_DOM_ALIAS *q_u, S 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) |