#include <winsock.h>
#endif /* HAVE_WINSOCK(2) */
+#undef __RETSTR
#define __RETSTR( x ) case x: return #x;
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
void (*stopfunc)(int);
-char *GetLastErrorString( void );
+static char *GetLastErrorString( void );
int srv_install(LPCTSTR lpszServiceName, LPCTSTR lpszDisplayName,
LPCTSTR lpszBinaryPathName, BOOL auto_start)
}
}
-char *GetErrorString( int err )
+static char *GetErrorString( int err )
{
static char msgBuf[1024];
return msgBuf;
}
-char *GetLastErrorString( void )
+static char *GetLastErrorString( void )
{
return GetErrorString( GetLastError() );
}