summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-04-16 02:35:35 +0000
committerTim Potter <tpot@samba.org>2001-04-16 02:35:35 +0000
commitaf08cd21eb714abc019656bc8cee86fd7a3f20d6 (patch)
treee0e4c9e87c3e95435ffc82652c2adf1179563dae /source3
parent71ae6a09cd2c4792f95459220645c424f7659913 (diff)
downloadsamba-af08cd21eb714abc019656bc8cee86fd7a3f20d6.tar.gz
samba-af08cd21eb714abc019656bc8cee86fd7a3f20d6.tar.bz2
samba-af08cd21eb714abc019656bc8cee86fd7a3f20d6.zip
Getting medieval with compiler warnings as Jeremy puts it.
(This used to be commit d05c3cf0f47a3c863adbed7ad4ab8f3248cd072d)
Diffstat (limited to 'source3')
-rw-r--r--source3/client/client.c6
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c2
-rw-r--r--source3/tdb/tdbutil.c4
3 files changed, 6 insertions, 6 deletions
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;