diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-09-09 02:43:30 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-09-09 02:43:30 +0000 |
commit | 444a01d2657bd665f13f7db6f4d3254b72b42e37 (patch) | |
tree | ae86993e0bb6f29a4a5ef6e0fe1f87e727778aed /source3 | |
parent | eb7b28759a71b8a1356a8706fa194179f3309990 (diff) | |
download | samba-444a01d2657bd665f13f7db6f4d3254b72b42e37.tar.gz samba-444a01d2657bd665f13f7db6f4d3254b72b42e37.tar.bz2 samba-444a01d2657bd665f13f7db6f4d3254b72b42e37.zip |
removed pointless parameter from readfile()
(This used to be commit 0742342ec496bec7246e067280737cd507465b50)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/client/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
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. */ |