2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 06:55:30 +00:00

coding style

This commit is contained in:
Andreas Gustafsson
2001-07-18 18:29:59 +00:00
parent aac5a28f1f
commit 3abbed44db
3 changed files with 13 additions and 12 deletions

View File

@@ -15,19 +15,19 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * 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 <windows.h>
#include <signal.h> #include <signal.h>
BOOL InitSockets(void); BOOL InitSockets(void);
/* /*
* Called when we enter the DLL * Called when we enter the DLL
*/ */
__declspec(dllexport) BOOL WINAPI DllMain( HINSTANCE hinstDLL, __declspec(dllexport) BOOL WINAPI DllMain(HINSTANCE hinstDLL,
DWORD fdwReason, LPVOID lpvReserved) DWORD fdwReason, LPVOID lpvReserved)
{ {
switch (fdwReason) switch (fdwReason)
{ {
/* /*

View File

@@ -15,10 +15,11 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * 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 #ifndef LWRES_NETDB_H
#define LWRES_NETDB_H 1 #define LWRES_NETDB_H 1
#include <stddef.h> /* Required on FreeBSD (and others?) for size_t. */ #include <stddef.h> /* Required on FreeBSD (and others?) for size_t. */
#define off_t _off_t #define off_t _off_t

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * 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 #ifndef LWRES_PLATFORM_H
#define LWRES_PLATFORM_H 1 #define LWRES_PLATFORM_H 1
@@ -71,19 +71,19 @@
* Define some Macros * Define some Macros
*/ */
#ifdef LIBLWRES_EXPORTS #ifdef LIBLWRES_EXPORTS
#define LIBLWRES_EXTERNAL_DATA __declspec( dllexport ) #define LIBLWRES_EXTERNAL_DATA __declspec(dllexport)
#else #else
#define LIBLWRES_EXTERNAL_DATA __declspec( dllimport ) #define LIBLWRES_EXTERNAL_DATA __declspec(dllimport)
#endif #endif
/* /*
* Define the MAKE_NONBLOCKING Macro here since it can get used in * Define the MAKE_NONBLOCKING Macro here since it can get used in
* a number of places. * a number of places.
*/ */
#define MAKE_NONBLOCKING(sd, retval)\ #define MAKE_NONBLOCKING(sd, retval) \
do {\ do { \
int _on = 1;\ int _on = 1; \
retval = ioctlsocket((SOCKET) sd, FIONBIO, &_on);\ retval = ioctlsocket((SOCKET) sd, FIONBIO, &_on); \
} while (0) } while (0)
/* /*