mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
r16284: Start fixing up gcc4 -O6 warnings on an x86_64 box. size_t != unsigned
int in a format string. Jeremy.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
c49ad9200b
commit
face01ef01
@ -229,8 +229,8 @@ static time_t centry_time(struct cache_entry *centry)
|
||||
{
|
||||
time_t ret;
|
||||
if (centry->len - centry->ofs < sizeof(time_t)) {
|
||||
DEBUG(0,("centry corruption? needed %d bytes, have %d\n",
|
||||
sizeof(time_t), centry->len - centry->ofs));
|
||||
DEBUG(0,("centry corruption? needed %u bytes, have %u\n",
|
||||
(unsigned int)sizeof(time_t), (unsigned int)(centry->len - centry->ofs)));
|
||||
smb_panic("centry_time");
|
||||
}
|
||||
ret = IVAL(centry->data, centry->ofs); /* FIXME: correct ? */
|
||||
|
@ -184,8 +184,8 @@ static BOOL fill_grent_mem(struct winbindd_domain *domain,
|
||||
*gr_mem = buf;
|
||||
*gr_mem_len = buf_len;
|
||||
|
||||
DEBUG(10, ("num_mem = %d, len = %d, mem = %s\n", *num_gr_mem,
|
||||
buf_len, *num_gr_mem ? buf : "NULL"));
|
||||
DEBUG(10, ("num_mem = %u, len = %u, mem = %s\n", (unsigned int)*num_gr_mem,
|
||||
(unsigned int)buf_len, *num_gr_mem ? buf : "NULL"));
|
||||
result = True;
|
||||
|
||||
done:
|
||||
@ -795,8 +795,8 @@ void winbindd_getgrent(struct winbindd_cli_state *state)
|
||||
break;
|
||||
}
|
||||
|
||||
DEBUG(10, ("list_len = %d, mem_len = %d\n",
|
||||
gr_mem_list_len, gr_mem_len));
|
||||
DEBUG(10, ("list_len = %d, mem_len = %u\n",
|
||||
gr_mem_list_len, (unsigned int)gr_mem_len));
|
||||
|
||||
memcpy(&gr_mem_list[gr_mem_list_len], gr_mem,
|
||||
gr_mem_len);
|
||||
|
@ -371,7 +371,7 @@ fam_register_notify(connection_struct * conn,
|
||||
}
|
||||
|
||||
if ((info = SMB_MALLOC_P(struct fam_req_info)) == NULL) {
|
||||
DEBUG(0, ("malloc of %d bytes failed\n", sizeof(struct fam_req_info)));
|
||||
DEBUG(0, ("malloc of %u bytes failed\n", (unsigned int)sizeof(struct fam_req_info)));
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
|
@ -863,8 +863,8 @@ static int check_ads_config( void )
|
||||
|
||||
if (strlen(global_myname()) > 15) {
|
||||
d_printf("Our netbios name can be at most 15 chars long, "
|
||||
"\"%s\" is %d chars long\n",
|
||||
global_myname(), strlen(global_myname()));
|
||||
"\"%s\" is %u chars long\n",
|
||||
global_myname(), (unsigned int)strlen(global_myname()));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -396,8 +396,8 @@ int net_rpc_join(int argc, const char **argv)
|
||||
|
||||
if (strlen(global_myname()) > 15) {
|
||||
d_printf("Our netbios name can be at most 15 chars long, "
|
||||
"\"%s\" is %d chars long\n",
|
||||
global_myname(), strlen(global_myname()));
|
||||
"\"%s\" is %u chars long\n",
|
||||
global_myname(), (unsigned int)strlen(global_myname()));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -672,8 +672,8 @@ static int net_sam_listmem(int argc, const char **argv)
|
||||
return -1;
|
||||
}
|
||||
|
||||
d_printf("%s\\%s has %d members\n", groupdomain, groupname,
|
||||
num_members);
|
||||
d_printf("%s\\%s has %u members\n", groupdomain, groupname,
|
||||
(unsigned int)num_members);
|
||||
for (i=0; i<num_members; i++) {
|
||||
const char *dom, *name;
|
||||
if (lookup_sid(tmp_talloc_ctx(), &members[i],
|
||||
|
Reference in New Issue
Block a user