make ntservice error to string routines static

#undef __RETSTR before #define
This commit is contained in:
Kurt Zeilenga 2000-05-13 00:48:17 +00:00
parent 3f618bfe03
commit 69fbf137aa
2 changed files with 6 additions and 7 deletions

View File

@ -7,6 +7,7 @@
#include <winsock.h>
#endif /* HAVE_WINSOCK(2) */
#undef __RETSTR
#define __RETSTR( x ) case x: return #x;
char *ber_pvt_wsa_err2string( int err )
@ -79,7 +80,5 @@ char *ber_pvt_wsa_err2string( int err )
__RETSTR( WSANO_RECOVERY )
__RETSTR( WSANO_DATA )
}
return "unknown";
return "unknown WSA error";
}
#undef __RETSTR

View File

@ -43,7 +43,7 @@ ldap_pvt_thread_t start_status_tid, stop_status_tid;
void (*stopfunc)(int);
char *GetLastErrorString( void );
static char *GetLastErrorString( void );
int srv_install(LPCTSTR lpszServiceName, LPCTSTR lpszDisplayName,
LPCTSTR lpszBinaryPathName, BOOL auto_start)
@ -428,7 +428,7 @@ void ReportSlapdShutdownComplete( )
}
}
char *GetErrorString( int err )
static char *GetErrorString( int err )
{
static char msgBuf[1024];
@ -441,7 +441,7 @@ char *GetErrorString( int err )
return msgBuf;
}
char *GetLastErrorString( void )
static char *GetLastErrorString( void )
{
return GetErrorString( GetLastError() );
}