From 029c374c9c2617627b90b7585b6722113cd760a4 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 1 Sep 2008 07:02:00 +0000 Subject: Stop using old-style function definitions. --- cpukit/httpd/asp.c | 4 ++-- cpukit/httpd/balloc.c | 2 +- cpukit/httpd/default.c | 6 +++--- cpukit/httpd/emfdb.c | 2 +- cpukit/httpd/form.c | 4 ++-- cpukit/httpd/handler.c | 4 ++-- cpukit/httpd/md5c.c | 56 ++++++++++++++++++++++++------------------------- cpukit/httpd/security.c | 4 ++-- cpukit/httpd/sock.c | 2 +- cpukit/httpd/socket.c | 4 ++-- cpukit/httpd/sym.c | 4 ++-- cpukit/httpd/uemf.c | 6 +++--- cpukit/httpd/um.c | 10 ++++----- cpukit/httpd/webmain.c | 2 +- cpukit/httpd/webs.c | 6 +++--- cpukit/httpd/websuemf.c | 2 +- 16 files changed, 59 insertions(+), 59 deletions(-) (limited to 'cpukit/httpd') diff --git a/cpukit/httpd/asp.c b/cpukit/httpd/asp.c index 7d20e683b7..57eebb8807 100644 --- a/cpukit/httpd/asp.c +++ b/cpukit/httpd/asp.c @@ -35,7 +35,7 @@ static char_t *skipWhite(char_t *s); * Create script spaces and commands */ -int websAspOpen() +int websAspOpen(void) { if (++aspOpenCount == 1) { /* @@ -56,7 +56,7 @@ int websAspOpen() * Close Asp symbol table. */ -void websAspClose() +void websAspClose(void) { if (--aspOpenCount <= 0) { if (websAspFunctions != -1) { diff --git a/cpukit/httpd/balloc.c b/cpukit/httpd/balloc.c index f43bc90acb..4c635dafdb 100644 --- a/cpukit/httpd/balloc.c +++ b/cpukit/httpd/balloc.c @@ -192,7 +192,7 @@ int bopen(void *buf, int bufsize, int flags) * Close down the balloc module and free all malloced memory. */ -void bclose() +void bclose(void) { #ifdef B_VERIFY_CAUSES_SEVERE_OVERHEAD verifyBallocSpace(); diff --git a/cpukit/httpd/default.c b/cpukit/httpd/default.c index 2dfb2f70b2..5da812235c 100644 --- a/cpukit/httpd/default.c +++ b/cpukit/httpd/default.c @@ -367,7 +367,7 @@ static void websDefaultWriteEvent(webs_t wp) * Closing down. Free resources. */ -void websDefaultClose() +void websDefaultClose(void) { if (websDefaultPage) { bfree(B_L, websDefaultPage); @@ -384,7 +384,7 @@ void websDefaultClose() * Get the default page for URL requests ending in "/" */ -char_t *websGetDefaultPage() +char_t *websGetDefaultPage(void) { return websDefaultPage; } @@ -394,7 +394,7 @@ char_t *websGetDefaultPage() * Get the default web directory */ -char_t *websGetDefaultDir() +char_t *websGetDefaultDir(void) { return websDefaultDir; } diff --git a/cpukit/httpd/emfdb.c b/cpukit/httpd/emfdb.c index 708b51106b..853a7e1e13 100644 --- a/cpukit/httpd/emfdb.c +++ b/cpukit/httpd/emfdb.c @@ -1038,7 +1038,7 @@ void basicSetProductDir(char_t *proddir) * Return the prefix-directory */ -char_t *basicGetProductDir() +char_t *basicGetProductDir(void) { if (basicProdDir) { return basicProdDir; diff --git a/cpukit/httpd/form.c b/cpukit/httpd/form.c index 501cea72e2..02401eadef 100644 --- a/cpukit/httpd/form.c +++ b/cpukit/httpd/form.c @@ -111,7 +111,7 @@ int websFormDefine(char_t *name, void (*fn)(webs_t wp, char_t *path, * Open the symbol table for forms. */ -void websFormOpen() +void websFormOpen(void) { formSymtab = symOpen(WEBS_SYM_INIT); } @@ -121,7 +121,7 @@ void websFormOpen() * Close the symbol table for forms. */ -void websFormClose() +void websFormClose(void) { if (formSymtab != -1) { symClose(formSymtab); diff --git a/cpukit/httpd/handler.c b/cpukit/httpd/handler.c index dbbe4148d5..4f88814b5a 100644 --- a/cpukit/httpd/handler.c +++ b/cpukit/httpd/handler.c @@ -37,7 +37,7 @@ static char_t *websCondenseMultipleChars(char_t *strToCondense, char_t cCondense * Initialize the URL handler module */ -int websUrlHandlerOpen() +int websUrlHandlerOpen(void) { if (++urlHandlerOpenCount == 1) { websAspOpen(); @@ -52,7 +52,7 @@ int websUrlHandlerOpen() * Close the URL handler module */ -void websUrlHandlerClose() +void websUrlHandlerClose(void) { websUrlHandlerType *sp; diff --git a/cpukit/httpd/md5c.c b/cpukit/httpd/md5c.c index 1e5a3442fa..25c2649f46 100644 --- a/cpukit/httpd/md5c.c +++ b/cpukit/httpd/md5c.c @@ -100,8 +100,8 @@ Rotation is separate from addition to prevent recomputation. /* MD5 initialization. Begins an MD5 operation, writing a new context. */ -void MD5Init (context) -MD5_CONTEXT *context; /* context */ +void MD5Init ( +MD5_CONTEXT *context) /* context */ { context->count[0] = context->count[1] = 0; /* Load magic initialization constants. @@ -116,10 +116,10 @@ MD5_CONTEXT *context; /* context */ operation, processing another message block, and updating the context. */ -void MD5Update (context, input, inputLen) -MD5_CONTEXT *context; /* context */ -unsigned char *input; /* input block */ -unsigned int inputLen; /* length of input block */ +void MD5Update ( +MD5_CONTEXT *context, /* context */ +unsigned char *input, /* input block */ +unsigned int inputLen) /* length of input block */ { unsigned int i, index, partLen; @@ -158,9 +158,9 @@ unsigned int inputLen; /* length of input block */ /* MD5 finalization. Ends an MD5 message-digest operation, writing the the message digest and zeroizing the context. */ -void MD5Final (digest, context) -unsigned char digest[16]; /* message digest */ -MD5_CONTEXT *context; /* context */ +void MD5Final ( +unsigned char digest[16], /* message digest */ +MD5_CONTEXT *context ) /* context */ { unsigned char bits[8]; unsigned int index, padLen; @@ -186,9 +186,9 @@ MD5_CONTEXT *context; /* context */ /* MD5 basic transformation. Transforms state based on block. */ -static void MD5Transform (state, block) -UINT4 state[4]; -unsigned char block[64]; +static void MD5Transform ( +UINT4 state[4], +unsigned char block[64]) { UINT4 a = state[0], b = state[1], c = state[2], d = state[3], x[16]; @@ -279,10 +279,10 @@ unsigned char block[64]; /* Encodes input (UINT4) into output (unsigned char). Assumes len is a multiple of 4. */ -static void Encode (output, input, len) -unsigned char *output; -UINT4 *input; -unsigned int len; +static void Encode ( +unsigned char *output, +UINT4 *input, +unsigned int len) { unsigned int i, j; @@ -297,10 +297,10 @@ unsigned int len; /* Decodes input (unsigned char) into output (UINT4). Assumes len is a multiple of 4. */ -static void Decode (output, input, len) -UINT4 *output; -unsigned char *input; -unsigned int len; +static void Decode ( +UINT4 *output, +unsigned char *input, +unsigned int len) { unsigned int i, j; @@ -312,10 +312,10 @@ unsigned int len; /* Note: Replace "for loop" with standard memcpy if possible. */ -static void MD5_memcpy (output, input, len) -POINTER output; -POINTER input; -unsigned int len; +static void MD5_memcpy ( +POINTER output, +POINTER input, +unsigned int len) { unsigned int i; @@ -325,10 +325,10 @@ unsigned int len; /* Note: Replace "for loop" with standard memset if possible. */ -static void MD5_memset (output, value, len) -POINTER output; -int value; -unsigned int len; +static void MD5_memset ( +POINTER output, +int value, +unsigned int len) { unsigned int i; diff --git a/cpukit/httpd/security.c b/cpukit/httpd/security.c index 9064b5d56f..ca83a72686 100644 --- a/cpukit/httpd/security.c +++ b/cpukit/httpd/security.c @@ -204,7 +204,7 @@ int websSecurityHandler(webs_t wp, char_t *urlPrefix, char_t *webDir, int arg, * Delete the default security handler */ -void websSecurityDelete() +void websSecurityDelete(void) { websUrlHandlerDelete(websSecurityHandler); } @@ -227,7 +227,7 @@ void websSetPassword(char_t *password) * Get password, return the decoded form */ -char_t *websGetPassword() +char_t *websGetPassword(void) { return bstrdup(B_L, websPassword); } diff --git a/cpukit/httpd/sock.c b/cpukit/httpd/sock.c index fce0b692cb..c61f94af27 100644 --- a/cpukit/httpd/sock.c +++ b/cpukit/httpd/sock.c @@ -688,7 +688,7 @@ socket_t *socketPtr(int sid) * Get the operating system error code */ -int socketGetError() +int socketGetError(void) { #if (defined (WIN) || defined (CE)) switch (WSAGetLastError()) { diff --git a/cpukit/httpd/socket.c b/cpukit/httpd/socket.c index f8c77868f0..23fedb9114 100644 --- a/cpukit/httpd/socket.c +++ b/cpukit/httpd/socket.c @@ -54,7 +54,7 @@ static int tryAlternateConnect(int sock, struct sockaddr *sockaddr); * Open socket module */ -int socketOpen() +int socketOpen(void) { #if CE || WIN WSADATA wsaData; @@ -85,7 +85,7 @@ int socketOpen() * Close the socket module, by closing all open connections */ -void socketClose() +void socketClose(void) { int i; diff --git a/cpukit/httpd/sym.c b/cpukit/httpd/sym.c index 3df45e86d7..2d7aadbc27 100644 --- a/cpukit/httpd/sym.c +++ b/cpukit/httpd/sym.c @@ -52,7 +52,7 @@ static int calcPrime(int size); * Open the symbol table subSystem. */ -int symSubOpen() +int symSubOpen(void) { if (++symOpenCount == 1) { symMax = 0; @@ -66,7 +66,7 @@ int symSubOpen() * Close the symbol table subSystem. */ -void symSubClose() +void symSubClose(void) { if (--symOpenCount <= 0) { symOpenCount = 0; diff --git a/cpukit/httpd/uemf.c b/cpukit/httpd/uemf.c index 106f8bc4c6..a2c438ac28 100644 --- a/cpukit/httpd/uemf.c +++ b/cpukit/httpd/uemf.c @@ -156,7 +156,7 @@ void emfInstSet(int inst) * Get the instance handle */ -int emfInstGet() +int emfInstGet(void) { return emfInst; } @@ -271,12 +271,12 @@ char_t *stritoa(int n, char_t *string, int width) * Stubs */ -char_t *basicGetProduct() +char_t *basicGetProduct(void) { return T("uemf"); } -char_t *basicGetAddress() +char_t *basicGetAddress(void) { return T("localhost"); } diff --git a/cpukit/httpd/um.c b/cpukit/httpd/um.c index e960f02719..e2ccdbbf29 100644 --- a/cpukit/httpd/um.c +++ b/cpukit/httpd/um.c @@ -149,7 +149,7 @@ static bool_t umCheckName(char_t *name); * umOpen() registers the UM tables in the fake emf-database */ -int umOpen() +int umOpen(void) { if (++umOpenCount != 1) { return didUM; @@ -178,7 +178,7 @@ int umOpen() * umClose() frees up the UM tables in the fake emf-database */ -void umClose() +void umClose(void) { if (--umOpenCount > 0) { return; @@ -464,7 +464,7 @@ int umDeleteUser(char_t *user) * "users" table. */ -char_t *umGetFirstUser() +char_t *umGetFirstUser(void) { return umGetFirstRowData(UM_USER_TABLENAME, UM_NAME); } @@ -830,7 +830,7 @@ bool_t umGetGroupInUse(char_t *group) * umGetFirstGroup() - return a pointer to the first non-blank group name */ -char_t *umGetFirstGroup() +char_t *umGetFirstGroup(void) { return umGetFirstRowData(UM_GROUP_TABLENAME, UM_NAME); } @@ -1078,7 +1078,7 @@ int umDeleteAccessLimit(char_t *url) * umGetFirstGroup() - return a pointer to the first non-blank access limit */ -char_t *umGetFirstAccessLimit() +char_t *umGetFirstAccessLimit(void) { return umGetFirstRowData(UM_ACCESS_TABLENAME, UM_NAME); } diff --git a/cpukit/httpd/webmain.c b/cpukit/httpd/webmain.c index 42a14c34a7..b57ea3136a 100644 --- a/cpukit/httpd/webmain.c +++ b/cpukit/httpd/webmain.c @@ -488,7 +488,7 @@ void defaultTraceHandler(int level, char_t *buf) * This filename must eventually be deleted with bfree(); */ -char_t *websGetCgiCommName() +char_t *websGetCgiCommName(void) { char_t *pname1, *pname2; diff --git a/cpukit/httpd/webs.c b/cpukit/httpd/webs.c index 94e0091a77..938710cf55 100644 --- a/cpukit/httpd/webs.c +++ b/cpukit/httpd/webs.c @@ -140,7 +140,7 @@ int websOpenServer(int port, int retries) * Close the GoAhead WebServer */ -void websCloseServer() +void websCloseServer(void) { webs_t wp; int wid; @@ -236,7 +236,7 @@ int websOpenListen(int port, int retries) * Close webs listen port */ -void websCloseListen() +void websCloseListen(void) { if (websListenSock >= 0) { socketCloseConnection(websListenSock); @@ -2364,7 +2364,7 @@ void websSetRealm(char_t *realmName) * Return the realm name (used for authorization) */ -char_t *websGetRealm() +char_t *websGetRealm(void) { return websRealm; } diff --git a/cpukit/httpd/websuemf.c b/cpukit/httpd/websuemf.c index 4ff1b92a7e..1b4c78c894 100644 --- a/cpukit/httpd/websuemf.c +++ b/cpukit/httpd/websuemf.c @@ -173,7 +173,7 @@ void emfUnschedCallback(int schedid) * Take the tasks off the queue in a round robin fashion. */ -void emfSchedProcess() +void emfSchedProcess(void) { sched_t *s; int schedid; -- cgit v1.2.3