summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-10-03 18:29:12 +0000
committerJeremy Allison <jra@samba.org>2000-10-03 18:29:12 +0000
commitc5ca95aeb1202c64bf37c8031c83d5c59c990ce3 (patch)
tree3ffaadf6c5fcc198d11ff8ecd0d91df9700bd658
parent3ad2ee22bb4ecee24d069bb7efadff18c25044d1 (diff)
downloadsamba-c5ca95aeb1202c64bf37c8031c83d5c59c990ce3.tar.gz
samba-c5ca95aeb1202c64bf37c8031c83d5c59c990ce3.tar.bz2
samba-c5ca95aeb1202c64bf37c8031c83d5c59c990ce3.zip
Fixes from Herb - compiler warnings.
Jeremy. (This used to be commit d9d3668fa322cbed36ca3393d8268bf0e5255e8d)
-rw-r--r--source3/rpc_parse/parse_creds.c24
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c2
2 files changed, 13 insertions, 13 deletions
diff --git a/source3/rpc_parse/parse_creds.c b/source3/rpc_parse/parse_creds.c
index c34a7f5ac3..d00a842b1e 100644
--- a/source3/rpc_parse/parse_creds.c
+++ b/source3/rpc_parse/parse_creds.c
@@ -64,7 +64,7 @@ BOOL creds_io_unix(char *desc, CREDS_UNIX *r_u, prs_struct *ps, int depth)
prs_align(ps);
prs_string("real_name", ps, depth, r_u->real_name, strlen(r_u->real_name), sizeof(r_u->real_name));
prs_align(ps);
- prs_uint32("guest", ps, depth, &(r_u->guest));
+ prs_uint32("guest", ps, depth, (uint32 *)&(r_u->guest));
return True;
}
@@ -120,7 +120,7 @@ BOOL creds_io_unix_sec(char *desc, CREDS_UNIX_SEC *r_u, prs_struct *ps, int dept
prs_uint32("uid", ps, depth, &(r_u->uid));
prs_uint32("gid", ps, depth, &(r_u->gid));
- prs_uint32("num_grps", ps, depth, &(r_u->num_grps));
+ prs_uint32("num_grps", ps, depth, (uint32 *)&(r_u->num_grps));
if (r_u->num_grps != 0)
{
r_u->grps = (uint32*)Realloc(r_u->grps,
@@ -240,20 +240,20 @@ BOOL creds_io_pwd_info(char *desc, struct pwd_info *pwd, prs_struct *ps, int dep
prs_align(ps);
- prs_uint32("nullpwd", ps, depth, &(pwd->null_pwd));
+ prs_uint32("nullpwd", ps, depth, (uint32 *)&(pwd->null_pwd));
if (pwd->null_pwd)
{
return True;
}
- prs_uint32("cleartext", ps, depth, &(pwd->cleartext));
+ prs_uint32("cleartext", ps, depth, (uint32 *)&(pwd->cleartext));
if (pwd->cleartext)
{
prs_string("password", ps, depth, pwd->password, strlen(pwd->password), sizeof(pwd->password));
prs_align(ps);
return True;
}
- prs_uint32("crypted", ps, depth, &(pwd->crypted));
+ prs_uint32("crypted", ps, depth, (uint32 *)&(pwd->crypted));
prs_uint8s(False, "smb_lm_pwd", ps, depth, (char*)&pwd->smb_lm_pwd, sizeof(pwd->smb_lm_pwd));
prs_align(ps);
@@ -329,7 +329,7 @@ BOOL creds_io_hybrid(char *desc, CREDS_HYBRID *r_u, prs_struct *ps, int depth)
prs_align(ps);
- prs_uint32("reuse", ps, depth, &(r_u->reuse));
+ prs_uint32("reuse", ps, depth, (uint32 *)&(r_u->reuse));
prs_uint32("ptr_ntc", ps, depth, &(r_u->ptr_ntc));
prs_uint32("ptr_uxc", ps, depth, &(r_u->ptr_uxc));
@@ -371,7 +371,7 @@ void copy_unix_creds(CREDS_UNIX *to, const CREDS_UNIX *from)
return;
}
fstrcpy(to->user_name, from->user_name);
-};
+}
void copy_nt_sec_creds(CREDS_NT_SEC *to, const CREDS_NT_SEC *from)
{
@@ -395,7 +395,7 @@ void copy_nt_sec_creds(CREDS_NT_SEC *to, const CREDS_NT_SEC *from)
to->num_grps = from->num_grps;
memcpy(to->grp_rids, from->grp_rids, size);
}
-};
+}
void copy_unix_sec_creds(CREDS_UNIX_SEC *to, const CREDS_UNIX_SEC *from)
{
@@ -423,7 +423,7 @@ void copy_unix_sec_creds(CREDS_UNIX_SEC *to, const CREDS_UNIX_SEC *from)
to->num_grps = from->num_grps;
memcpy(to->grps, from->grps, size);
}
-};
+}
void create_ntc_from_cli_state (CREDS_NT *to, const struct cli_state *cli_from)
{
@@ -446,7 +446,7 @@ void create_ntc_from_cli_state (CREDS_NT *to, const struct cli_state *cli_from)
to->user_name, to->domain,
to->ntlmssp_flags));
-};
+}
void copy_nt_creds(struct ntuser_creds *to,
@@ -469,7 +469,7 @@ void copy_nt_creds(struct ntuser_creds *to,
DEBUG(10,("copy_nt_creds: user %s domain %s flgs: %x\n",
to->user_name, to->domain,
to->ntlmssp_flags));
-};
+}
void copy_user_creds(struct user_creds *to,
const struct user_creds *from)
@@ -519,7 +519,7 @@ void copy_user_creds(struct user_creds *to,
memcpy(to->usr_sess_key, from->usr_sess_key,
sizeof(to->usr_sess_key));
}
-};
+}
void free_user_creds(struct user_creds *creds)
{
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 6e222b2386..717ee1bed1 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -3096,7 +3096,7 @@ static uint32 getprinterdriver2_level6(fstring servername, fstring architecture,
*needed += spoolss_size_printer_driver_info_6(&info);
if (!alloc_buffer_size(buffer, *needed)) {
- free_printer_driver_info_3(&info);
+ free_printer_driver_info_6(&info);
return ERROR_INSUFFICIENT_BUFFER;
}