1
0
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:
Jeremy Allison
2006-06-16 01:47:02 +00:00
committed by Gerald (Jerry) Carter
parent c49ad9200b
commit face01ef01
6 changed files with 13 additions and 13 deletions

View File

@ -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 ? */

View File

@ -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);

View File

@ -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);
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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],