From: Francesco Chemolli Date: Mon, 10 Jan 2011 17:11:07 +0000 (+0100) Subject: Portability fix: remove unneeded functions in lib/rfcnb X-Git-Tag: take00~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=86678de81ad7e54170521e40befb5826897ba9eb;p=thirdparty%2Fsquid.git Portability fix: remove unneeded functions in lib/rfcnb --- diff --git a/lib/rfcnb/session.c b/lib/rfcnb/session.c index 0f279b9586..0a4878e3fe 100644 --- a/lib/rfcnb/session.c +++ b/lib/rfcnb/session.c @@ -44,10 +44,6 @@ int RFCNB_Stats[RFCNB_MAX_STATS]; RFCNB_Prot_Print_Routine *Prot_Print_Routine = NULL; /* Pointer to protocol print routine */ -int RFCNB_Get_Last_Errno(void); -int RFCNB_Get_Error_Msg(int code, char *msg_buf, int len); -void RFCNB_Register_Print_Routine(RFCNB_Prot_Print_Routine * fn); - /* Set up a session with a remote name. We are passed Called_Name as a * string which we convert to a NetBIOS name, ie space terminated, up to * 16 characters only if we need to. If Called_Address is not empty, then @@ -325,24 +321,3 @@ RFCNB_Get_Last_Error() { return (RFCNB_errno); } - -/* Pick up saved errno as well */ -int -RFCNB_Get_Last_Errno() -{ - return (RFCNB_saved_errno); -} - -/* Pick up the last error response and return in string ... */ -int -RFCNB_Get_Error_Msg(int code, char *msg_buf, int len) -{ - return (strncpy(msg_buf, RFCNB_Error_Strings[abs(code)], len) != NULL); -} - -/* Register a higher level protocol print routine */ -void -RFCNB_Register_Print_Routine(RFCNB_Prot_Print_Routine * fn) -{ - Prot_Print_Routine = fn; -}