Skip to content
Snippets Groups Projects
Commit 69fbf137 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

make ntservice error to string routines static

#undef __RETSTR before #define
parent 3f618bfe
No related branches found
No related tags found
No related merge requests found
......@@ -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";
}
\ No newline at end of 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() );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment