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 | 0742342ec496bec7246e067280737cd507465b50 (patch) | |
tree | cb7a7d2a653be53ce5fff2becba906495a8f51eb /source/client | |
parent | 865e0507e6e6ad6a71d833c4f2a0f57362637719 (diff) | |
download | samba-0742342ec496bec7246e067280737cd507465b50.tar.gz samba-0742342ec496bec7246e067280737cd507465b50.tar.xz samba-0742342ec496bec7246e067280737cd507465b50.zip |
removed pointless parameter from readfile()
Diffstat (limited to 'source/client')
-rw-r--r-- | source/client/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/client/client.c b/source/client/client.c index f759ac7b760..6ae57cb2111 100644 --- a/source/client/client.c +++ b/source/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. */ |