From 444a01d2657bd665f13f7db6f4d3254b72b42e37 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 9 Sep 2001 02:43:30 +0000 Subject: removed pointless parameter from readfile() (This used to be commit 0742342ec496bec7246e067280737cd507465b50) --- source3/client/client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/client/client.c b/source3/client/client.c index f759ac7b76..6ae57cb211 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -135,13 +135,13 @@ static int writefile(int f, char *b, int n) read from a file with LF->CR/LF translation if appropriate. return the number read. read approx n bytes. ****************************************************************************/ -static int readfile(char *b, int size, int n, FILE *f) +static int readfile(char *b, int n, FILE *f) { int i; int c; if (!translation || (size != 1)) - return(fread(b,size,n,f)); + return fread(b,1,n,f); i = 0; while (i < (n - 1) && (i < BUFFER_SIZE)) { @@ -1023,7 +1023,7 @@ static void do_put(char *rname,char *lname) int n = maxwrite; int ret; - if ((n = readfile(buf,1,n,f)) < 1) { + if ((n = readfile(buf,n,f)) < 1) { if((n == 0) && feof(f)) break; /* Empty local file. */ -- cgit