From f0e6e5c37d5921450d030acb98c794f0cf7224a6 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 8 Jul 2011 09:45:05 +0200 Subject: s3:libsmb: remove unused enum smb_read_errors infrastructure metze --- source3/lib/util_sock.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index 867646bc50..da84d76aa6 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -47,26 +47,6 @@ int client_socket_port(int fd) } #endif -/**************************************************************************** - Accessor functions to make thread-safe code easier later... -****************************************************************************/ - -void set_smb_read_error(enum smb_read_errors *pre, - enum smb_read_errors newerr) -{ - if (pre) { - *pre = newerr; - } -} - -void cond_set_smb_read_error(enum smb_read_errors *pre, - enum smb_read_errors newerr) -{ - if (pre && *pre == SMB_READ_OK) { - *pre = newerr; - } -} - /**************************************************************************** Determine if a file descriptor is in fact a socket. ****************************************************************************/ -- cgit