summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-06-20 10:06:26 +0000
committerJeremy Allison <jra@samba.org>1998-06-20 10:06:26 +0000
commit55da32fb45c6661857d5e6679bc7474c993a924b (patch)
treea51f9e8151aecdf4c04e8d486075a3d751812096 /source3
parentc47cce6dd9553990a5b715befde94b99df7163c6 (diff)
downloadsamba-55da32fb45c6661857d5e6679bc7474c993a924b.tar.gz
samba-55da32fb45c6661857d5e6679bc7474c993a924b.tar.bz2
samba-55da32fb45c6661857d5e6679bc7474c993a924b.zip
clitar.c: Fixed minor gcc -pedantic-error compile warnings.
passdb.c: Fixed stupid bug in read_sid_from_file(). Jeremy. (This used to be commit e65efe3f78240a4fa1ed7931e96c6fb698d9d8c8)
Diffstat (limited to 'source3')
-rw-r--r--source3/client/clitar.c9
-rw-r--r--source3/passdb/passdb.c2
2 files changed, 6 insertions, 5 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index 412af8fa83..b06b5b2d37 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -307,7 +307,7 @@ static long readtarheader(union hblock *hb, file_info2 *finfo, char *prefix)
}
fprintf(stdout, "\n");
fprintf(stdout, "%s\n", hb -> dummy);
- fprintf(stdout, "Tarbuf = %X, hb = %X\n", tarbuf, hb);
+ fprintf(stdout, "Tarbuf = %X, hb = %X\n", (int)tarbuf, (int)hb);
return -1;
}
@@ -2309,7 +2309,6 @@ static int read_inclusion_file(char *filename)
char *p;
char *tmpstr;
int i;
- int result = 0;
int error = 0;
clipn = 0;
@@ -2388,10 +2387,10 @@ static int read_inclusion_file(char *filename)
}
if (error) {
if (cliplist) {
- char **p;
+ char **pp;
/* We know cliplist is always null-terminated */
- for (p = cliplist; *p; ++p) {
- free(*p);
+ for (pp = cliplist; *pp; ++pp) {
+ free(*pp);
}
free(cliplist);
cliplist = NULL;
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index 2ba856e19b..cc4a8e5c55 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -874,6 +874,8 @@ static BOOL read_sid_from_file(int fd, char *sid_file)
{
fstring fline;
+ memset(fline, '\0', sizeof(fline));
+
if(read(fd, fline, sizeof(fline) -1 ) < 0) {
DEBUG(0,("read_sid_from_file: unable to read file %s. Error was %s\n",
sid_file, strerror(errno) ));