summaryrefslogtreecommitdiff
path: root/source3/client/clitar.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-09-23 00:57:34 +0000
committerJeremy Allison <jra@samba.org>1998-09-23 00:57:34 +0000
commit242d068297b79af46c00a94d0e737c79e908a498 (patch)
treeb3520289cce67032e40066c769b909cc43bb7286 /source3/client/clitar.c
parentac39ce3eba28eed97942e915f7b4cd77cdfd9e2d (diff)
downloadsamba-242d068297b79af46c00a94d0e737c79e908a498.tar.gz
samba-242d068297b79af46c00a94d0e737c79e908a498.tar.bz2
samba-242d068297b79af46c00a94d0e737c79e908a498.zip
Fixed up warnings in new client code.
Note to coders. If using gcc please use the compiler flags : -Wall -Werror -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual *before* checking anything in to ensure a clean compile. Jeremy. (This used to be commit 1daf424da6c5a346f672121d4b6fe5753250f464)
Diffstat (limited to 'source3/client/clitar.c')
-rw-r--r--source3/client/clitar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index 0ce5c205fa..7df6417ae1 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -1586,7 +1586,7 @@ static int next_block(char *ltarbuf, char **bufferp, int bufsiz)
{
int bufread, total = 0;
- DEBUG(5, ("Advancing to next block: %0X\n", *bufferp));
+ DEBUG(5, ("Advancing to next block: %0x\n", (unsigned int)*bufferp));
*bufferp += TBLOCK;
total = TBLOCK;
@@ -1643,7 +1643,7 @@ static int skip_file(int skipsize)
static int get_file(file_info2 finfo, char * inbuf, char * outbuf)
{
int fsize = finfo.size;
- int fnum, pos = 0, dsize = 0, wsize = 0, rsize = 0;
+ int fnum, pos = 0, dsize = 0, rsize = 0;
DEBUG(5, ("get_file: file: %s, size %i\n", finfo.name, fsize));
@@ -1745,7 +1745,6 @@ static char * get_longfilename(file_info2 finfo)
{
int namesize = finfo.size + strlen(cur_dir) + 2;
char *longname = malloc(namesize);
- char *xxx;
int offset = 0, left = finfo.size;
BOOL first = True;
@@ -1792,7 +1791,7 @@ static char * get_longfilename(file_info2 finfo)
static void do_tarput(void)
{
- file_info2 finfo, *finfo2;
+ file_info2 finfo;
struct timeval tp_start;
char *inbuf, *outbuf, *longfilename = NULL;
int skip = False;
@@ -1805,6 +1804,7 @@ static void do_tarput(void)
#if 0 /* Fix later ... */
if (push_dir(&dir_stack, &finfo)) {
+ file_info2 *finfo2;
finfo2 = pop_dir(&dir_stack);
inbuf = top_dir_name(&dir_stack); /* FIXME */