mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
coding style
This commit is contained in:
@@ -15,19 +15,19 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: DLLMain.c,v 1.2 2001/07/18 18:27:11 gson Exp $ */
|
||||
|
||||
#include <windows.h>
|
||||
#include <signal.h>
|
||||
|
||||
BOOL InitSockets(void);
|
||||
|
||||
|
||||
/*
|
||||
* Called when we enter the DLL
|
||||
*/
|
||||
__declspec(dllexport) BOOL WINAPI DllMain( HINSTANCE hinstDLL,
|
||||
DWORD fdwReason, LPVOID lpvReserved)
|
||||
__declspec(dllexport) BOOL WINAPI DllMain(HINSTANCE hinstDLL,
|
||||
DWORD fdwReason, LPVOID lpvReserved)
|
||||
{
|
||||
|
||||
switch (fdwReason)
|
||||
{
|
||||
/*
|
||||
|
@@ -15,10 +15,11 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: netdb.h,v 1.1 2001/07/18 02:37:15 mayer Exp $ */
|
||||
/* $Id: netdb.h,v 1.2 2001/07/18 18:29:58 gson Exp $ */
|
||||
|
||||
#ifndef LWRES_NETDB_H
|
||||
#define LWRES_NETDB_H 1
|
||||
|
||||
#include <stddef.h> /* Required on FreeBSD (and others?) for size_t. */
|
||||
|
||||
#define off_t _off_t
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: platform.h,v 1.1 2001/07/18 02:37:15 mayer Exp $ */
|
||||
/* $Id: platform.h,v 1.2 2001/07/18 18:29:59 gson Exp $ */
|
||||
|
||||
#ifndef LWRES_PLATFORM_H
|
||||
#define LWRES_PLATFORM_H 1
|
||||
@@ -71,19 +71,19 @@
|
||||
* Define some Macros
|
||||
*/
|
||||
#ifdef LIBLWRES_EXPORTS
|
||||
#define LIBLWRES_EXTERNAL_DATA __declspec( dllexport )
|
||||
#define LIBLWRES_EXTERNAL_DATA __declspec(dllexport)
|
||||
#else
|
||||
#define LIBLWRES_EXTERNAL_DATA __declspec( dllimport )
|
||||
#define LIBLWRES_EXTERNAL_DATA __declspec(dllimport)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Define the MAKE_NONBLOCKING Macro here since it can get used in
|
||||
* a number of places.
|
||||
*/
|
||||
#define MAKE_NONBLOCKING(sd, retval)\
|
||||
do {\
|
||||
int _on = 1;\
|
||||
retval = ioctlsocket((SOCKET) sd, FIONBIO, &_on);\
|
||||
#define MAKE_NONBLOCKING(sd, retval) \
|
||||
do { \
|
||||
int _on = 1; \
|
||||
retval = ioctlsocket((SOCKET) sd, FIONBIO, &_on); \
|
||||
} while (0)
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user