From 67f28b93ab01dc74bacf7e45b4030a83a2a7a3d9 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 12 Aug 2004 07:13:44 +0000 Subject: r1766: we do not have smb_read_error in samba4 (This used to be commit 1c3d52cea4dff57b14ee9bc197001fadb1d18abf) --- source4/lib/util_sock.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source4/lib') diff --git a/source4/lib/util_sock.c b/source4/lib/util_sock.c index 54365116e8..f24d010f22 100644 --- a/source4/lib/util_sock.c +++ b/source4/lib/util_sock.c @@ -271,8 +271,6 @@ ssize_t read_data_until(int fd,char *buffer,size_t N, ssize_t ret; size_t total=0; - smb_read_error = 0; - while (total < N) { if (endtime != NULL) { @@ -295,13 +293,11 @@ ssize_t read_data_until(int fd,char *buffer,size_t N, if (ret == 0) { DEBUG(10,("read_data: read of %d returned 0. Error = %s\n", (int)(N - total), strerror(errno) )); - smb_read_error = READ_EOF; return 0; } if (ret == -1) { DEBUG(0,("read_data: read failure for %d. Error = %s\n", (int)(N - total), strerror(errno) )); - smb_read_error = READ_ERROR; return -1; } total += ret; -- cgit