mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
make ntservice error to string routines static
#undef __RETSTR before #define
This commit is contained in:
parent
3f618bfe03
commit
69fbf137aa
@ -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";
|
||||
}
|
||||
|
||||
#undef __RETSTR
|
||||
return "unknown WSA error";
|
||||
}
|
@ -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() );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user