nw: please the stricter checksrc

This commit is contained in:
Daniel Stenberg 2016-04-03 23:06:23 +02:00
parent e729aa99f9
commit 1571da69b5
2 changed files with 27 additions and 27 deletions

View File

@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___ * | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____| * \___|\___/|_| \_\_____|
* *
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
* *
* This software is licensed as described in the file COPYING, which * This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms * you should have received as part of this distribution. The terms
@ -58,26 +58,26 @@ rtag_t gAllocTag = (rtag_t) NULL;
NXMutex_t *gLibLock = (NXMutex_t *) NULL; NXMutex_t *gLibLock = (NXMutex_t *) NULL;
/* internal library function prototypes... */ /* internal library function prototypes... */
int DisposeLibraryData( void * ); int DisposeLibraryData(void *);
void DisposeThreadData( void * ); void DisposeThreadData(void *);
int GetOrSetUpData( int id, libdata_t **data, libthreaddata_t **threaddata ); int GetOrSetUpData(int id, libdata_t **data, libthreaddata_t **threaddata);
int _NonAppStart( void *NLMHandle, int _NonAppStart(void *NLMHandle,
void *errorScreen, void *errorScreen,
const char *cmdLine, const char *cmdLine,
const char *loadDirPath, const char *loadDirPath,
size_t uninitializedDataLength, size_t uninitializedDataLength,
void *NLMFileHandle, void *NLMFileHandle,
int (*readRoutineP)( int conn, int (*readRoutineP)(int conn,
void *fileHandle, size_t offset, void *fileHandle, size_t offset,
size_t nbytes, size_t nbytes,
size_t *bytesRead, size_t *bytesRead,
void *buffer ), void *buffer),
size_t customDataOffset, size_t customDataOffset,
size_t customDataSize, size_t customDataSize,
int messageCount, int messageCount,
const char **messages ) const char **messages)
{ {
NX_LOCK_INFO_ALLOC(liblock, "Per-Application Data Lock", 0); NX_LOCK_INFO_ALLOC(liblock, "Per-Application Data Lock", 0);
@ -132,7 +132,7 @@ int _NonAppStart( void *NLMHandle,
* Here we clean up any resources we allocated. Resource tags is a big part * Here we clean up any resources we allocated. Resource tags is a big part
* of what we created, but NetWare doesn't ask us to free those. * of what we created, but NetWare doesn't ask us to free those.
*/ */
void _NonAppStop( void ) void _NonAppStop(void)
{ {
(void) unregister_library(gLibId); (void) unregister_library(gLibId);
NXMutexFree(gLibLock); NXMutexFree(gLibLock);
@ -149,13 +149,13 @@ void _NonAppStop( void )
* we return a non-zero value. Right now, there isn't any reason not to allow * we return a non-zero value. Right now, there isn't any reason not to allow
* it. * it.
*/ */
int _NonAppCheckUnload( void ) int _NonAppCheckUnload(void)
{ {
return 0; return 0;
} }
int GetOrSetUpData(int id, libdata_t **appData, int GetOrSetUpData(int id, libdata_t **appData,
libthreaddata_t **threadData ) libthreaddata_t **threadData)
{ {
int err; int err;
libdata_t *app_data; libdata_t *app_data;
@ -277,7 +277,7 @@ int GetOrSetUpData(int id, libdata_t **appData,
return err; return err;
} }
int DisposeLibraryData( void *data ) int DisposeLibraryData(void *data)
{ {
if(data) { if(data) {
void *tenbytes = ((libdata_t *) data)->tenbytes; void *tenbytes = ((libdata_t *) data)->tenbytes;
@ -289,7 +289,7 @@ int DisposeLibraryData( void *data )
return 0; return 0;
} }
void DisposeThreadData( void *data ) void DisposeThreadData(void *data)
{ {
if(data) { if(data) {
void *twentybytes = ((libthreaddata_t *) data)->twentybytes; void *twentybytes = ((libthreaddata_t *) data)->twentybytes;
@ -303,7 +303,7 @@ void DisposeThreadData( void *data )
/* For native CLib-based NLM seems we can do a bit more simple. */ /* For native CLib-based NLM seems we can do a bit more simple. */
#include <nwthread.h> #include <nwthread.h>
int main ( void ) int main (void)
{ {
/* initialize any globals here... */ /* initialize any globals here... */

View File

@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___ * | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____| * \___|\___/|_| \_\_____|
* *
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
* *
* This software is licensed as described in the file COPYING, which * This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms * you should have received as part of this distribution. The terms
@ -26,7 +26,7 @@
#ifdef __NOVELL_LIBC__ #ifdef __NOVELL_LIBC__
/* For native LibC-based NLM we need to do nothing. */ /* For native LibC-based NLM we need to do nothing. */
int netware_init ( void ) int netware_init (void)
{ {
return 0; return 0;
} }
@ -45,7 +45,7 @@ NETDB_DEFINE_CONTEXT
#include <arpa/inet.h> #include <arpa/inet.h>
NETINET_DEFINE_CONTEXT NETINET_DEFINE_CONTEXT
int netware_init ( void ) int netware_init (void)
{ {
int rc = 0; int rc = 0;
unsigned int myHandle = GetNLMHandle(); unsigned int myHandle = GetNLMHandle();
@ -72,13 +72,13 @@ int netware_init ( void )
} }
/* dummy function to satisfy newer prelude */ /* dummy function to satisfy newer prelude */
int __init_environment ( void ) int __init_environment (void)
{ {
return 0; return 0;
} }
/* dummy function to satisfy newer prelude */ /* dummy function to satisfy newer prelude */
int __deinit_environment ( void ) int __deinit_environment (void)
{ {
return 0; return 0;
} }