From af08cd21eb714abc019656bc8cee86fd7a3f20d6 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 16 Apr 2001 02:35:35 +0000 Subject: Getting medieval with compiler warnings as Jeremy puts it. (This used to be commit d05c3cf0f47a3c863adbed7ad4ab8f3248cd072d) --- source3/client/client.c | 6 +++--- source3/rpc_server/srv_spoolss_nt.c | 2 +- source3/tdb/tdbutil.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'source3') diff --git a/source3/client/client.c b/source3/client/client.c index 7b313a3136..1d48ac0f71 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -1848,13 +1848,13 @@ static void process_stdin(void) while (1) { fstring tok; - fstring prompt; + fstring the_prompt; char *line; int i; /* display a prompt */ - slprintf(prompt, sizeof(prompt)-1, "smb: %s> ", cur_dir); - line = smb_readline(prompt, readline_callback, completion_fn); + slprintf(the_prompt, sizeof(the_prompt)-1, "smb: %s> ", cur_dir); + line = smb_readline(the_prompt, readline_callback, completion_fn); if (!line) break; diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 917885eafb..57f95873fc 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -5305,7 +5305,7 @@ uint32 _spoolss_getform(pipes_struct *p, SPOOL_Q_GETFORM *q_u, SPOOL_R_GETFORM * FORM_1 form_1; fstring form_name; int buffer_size=0; - int numofforms=0, i; + int numofforms=0, i=0; /* that's an [in out] buffer */ spoolss_move_buffer(q_u->buffer, &r_u->buffer); diff --git a/source3/tdb/tdbutil.c b/source3/tdb/tdbutil.c index d683d70c46..95c90efeed 100644 --- a/source3/tdb/tdbutil.c +++ b/source3/tdb/tdbutil.c @@ -127,7 +127,7 @@ size_t tdb_pack(char *buf, int bufsize, char *fmt, ...) uint32 d; int i; void *p; - int len; + int len=0; char *s; char c; char *buf0 = buf; @@ -212,7 +212,7 @@ int tdb_unpack(char *buf, int bufsize, char *fmt, ...) va_list ap; uint16 *w; uint32 *d; - int len; + int len=0; int *i; void **p; char *s, **b; -- cgit