From: Francesco Chemolli Date: Tue, 11 Jan 2011 22:01:53 +0000 (+0100) Subject: Portability fix: removed unused code from smblib X-Git-Tag: take00~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f931485ad46b26cb67d4f982ac671372227c85f4;p=thirdparty%2Fsquid.git Portability fix: removed unused code from smblib --- diff --git a/lib/smblib/smblib.c b/lib/smblib/smblib.c index 2364cebd40..45ff27a88d 100644 --- a/lib/smblib/smblib.c +++ b/lib/smblib/smblib.c @@ -55,8 +55,6 @@ const char *SMB_Prots[] = {"PC NETWORK PROGRAM 1.0", NULL }; -int SMB_Term(void); -int SMBlib_Set_Sock_NoDelay(SMB_Handle_Type Con_Handle, BOOL yn); /* Initialize the SMBlib package */ @@ -79,20 +77,6 @@ int SMB_Init() } -int SMB_Term() - -{ - -#ifdef SMBLIB_INSTRUMENT - - SMBlib_Instrument_Term(); /* Clean up and print results */ - -#endif - - return 0; - -} - /* SMB_Create: Create a connection structure and return for later use */ /* We have other helper routines to set variables */ @@ -105,24 +89,6 @@ SMB_Handle_Type SMB_Create_Con_Handle() } -int SMBlib_Set_Sock_NoDelay(SMB_Handle_Type Con_Handle, BOOL yn) - -{ - - - if (RFCNB_Set_Sock_NoDelay(Con_Handle -> Trans_Connect, yn) < 0) { - -#ifdef DEBUG -#endif - - fprintf(stderr, "Setting no-delay on TCP socket failed ...\n"); - - } - - return(0); - -} - /* SMB_Connect_Server: Connect to a server, but don't negotiate protocol */ /* or anything else ... */