summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-09-01 07:02:00 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-09-01 07:02:00 +0000
commit029c374c9c2617627b90b7585b6722113cd760a4 (patch)
tree64e4e41c2c61990e65e413e912b324a6eda3ea58 /cpukit
parent2008-09-01 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-029c374c9c2617627b90b7585b6722113cd760a4.tar.bz2
Stop using old-style function definitions.
Diffstat (limited to '')
-rw-r--r--cpukit/httpd/asp.c4
-rw-r--r--cpukit/httpd/balloc.c2
-rw-r--r--cpukit/httpd/default.c6
-rw-r--r--cpukit/httpd/emfdb.c2
-rw-r--r--cpukit/httpd/form.c4
-rw-r--r--cpukit/httpd/handler.c4
-rw-r--r--cpukit/httpd/md5c.c56
-rw-r--r--cpukit/httpd/security.c4
-rw-r--r--cpukit/httpd/sock.c2
-rw-r--r--cpukit/httpd/socket.c4
-rw-r--r--cpukit/httpd/sym.c4
-rw-r--r--cpukit/httpd/uemf.c6
-rw-r--r--cpukit/httpd/um.c10
-rw-r--r--cpukit/httpd/webmain.c2
-rw-r--r--cpukit/httpd/webs.c6
-rw-r--r--cpukit/httpd/websuemf.c2
-rw-r--r--cpukit/libnetworking/libc/addr2ascii.c10
-rw-r--r--cpukit/libnetworking/libc/ascii2addr.c8
-rw-r--r--cpukit/libnetworking/libc/base64.c8
-rw-r--r--cpukit/libnetworking/libc/gethostbyht.c20
-rw-r--r--cpukit/libnetworking/libc/gethostnamadr.c5
-rw-r--r--cpukit/libnetworking/libc/getnetbyht.c16
-rw-r--r--cpukit/libnetworking/libc/getservbyport.c6
-rw-r--r--cpukit/libnetworking/libc/getservent.c8
-rw-r--r--cpukit/libnetworking/libc/herror.c6
-rw-r--r--cpukit/libnetworking/libc/inet_addr.c10
-rw-r--r--cpukit/libnetworking/libc/inet_lnaof.c4
-rw-r--r--cpukit/libnetworking/libc/inet_netof.c4
-rw-r--r--cpukit/libnetworking/libc/inet_network.c4
-rw-r--r--cpukit/libnetworking/libc/inet_ntoa.c4
-rw-r--r--cpukit/libnetworking/libc/inet_ntop.c26
-rw-r--r--cpukit/libnetworking/libc/inet_pton.c20
-rw-r--r--cpukit/libnetworking/libc/linkaddr.c10
-rw-r--r--cpukit/libnetworking/libc/map_v4v6.c8
-rw-r--r--cpukit/libnetworking/libc/res_comp.c12
-rw-r--r--cpukit/libnetworking/libc/res_debug.c17
-rw-r--r--cpukit/libnetworking/libc/res_init.c13
-rw-r--r--cpukit/libnetworking/libc/res_mkquery.c18
-rw-r--r--cpukit/libnetworking/libc/res_query.c33
-rw-r--r--cpukit/libnetworking/nfs/bootp_subr.c8
-rw-r--r--cpukit/libnetworking/rtems/rtems_glue.c22
41 files changed, 204 insertions, 214 deletions
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;
diff --git a/cpukit/libnetworking/libc/addr2ascii.c b/cpukit/libnetworking/libc/addr2ascii.c
index 01bbde6ec8..8edf802de0 100644
--- a/cpukit/libnetworking/libc/addr2ascii.c
+++ b/cpukit/libnetworking/libc/addr2ascii.c
@@ -62,11 +62,11 @@
* naming and the poor choice of arguments.
*/
char *
-addr2ascii(af, addrp, len, buf)
- int af;
- const void *addrp;
- int len; /* should be size_t XXX */
- char *buf; /* XXX should pass length of buffer */
+addr2ascii(
+ int af,
+ const void *addrp,
+ int len, /* should be size_t XXX */
+ char *buf) /* XXX should pass length of buffer */
{
static char staticbuf[64]; /* 64 for AF_LINK > 16 for AF_INET */
diff --git a/cpukit/libnetworking/libc/ascii2addr.c b/cpukit/libnetworking/libc/ascii2addr.c
index 5dd8240a57..27978f4eb8 100644
--- a/cpukit/libnetworking/libc/ascii2addr.c
+++ b/cpukit/libnetworking/libc/ascii2addr.c
@@ -46,10 +46,10 @@
#include <arpa/inet.h>
int
-ascii2addr(af, ascii, result)
- int af;
- const char *ascii;
- void *result;
+ascii2addr(
+ int af,
+ const char *ascii,
+ void *result)
{
struct in_addr *ina;
char strbuf[4*sizeof("123")]; /* long enough for V4 only */
diff --git a/cpukit/libnetworking/libc/base64.c b/cpukit/libnetworking/libc/base64.c
index 27cfb3dc73..070cc52231 100644
--- a/cpukit/libnetworking/libc/base64.c
+++ b/cpukit/libnetworking/libc/base64.c
@@ -194,10 +194,10 @@ b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize) {
*/
int
-b64_pton(src, target, targsize)
- char const *src;
- u_char *target;
- size_t targsize;
+b64_pton(
+ char const *src,
+ u_char *target,
+ size_t targsize)
{
int tarindex, state, ch;
char *pos;
diff --git a/cpukit/libnetworking/libc/gethostbyht.c b/cpukit/libnetworking/libc/gethostbyht.c
index c5c30f98b9..65979b7f8a 100644
--- a/cpukit/libnetworking/libc/gethostbyht.c
+++ b/cpukit/libnetworking/libc/gethostbyht.c
@@ -86,8 +86,7 @@ static char *cur;
#endif
void
-_sethosthtent(f)
- int f;
+_sethosthtent(int f)
{
if (!hostf)
hostf = fopen(_PATH_HOSTS, "r" );
@@ -97,7 +96,7 @@ _sethosthtent(f)
}
void
-_endhosthtent()
+_endhosthtent(void)
{
if (hostf && !stayopen) {
(void) fclose(hostf);
@@ -106,7 +105,7 @@ _endhosthtent()
}
struct hostent *
-gethostent()
+gethostent(void)
{
char *p;
register char *cp, **q;
@@ -171,9 +170,9 @@ gethostent()
}
struct hostent *
-_gethostbyhtname(name, af)
- const char *name;
- int af;
+_gethostbyhtname(
+ const char *name,
+ int af)
{
register struct hostent *p;
register char **cp;
@@ -194,9 +193,10 @@ found:
}
struct hostent *
-_gethostbyhtaddr(addr, len, af)
- const char *addr;
- int len, af;
+_gethostbyhtaddr(
+ const char *addr,
+ int len,
+ int af)
{
register struct hostent *p;
diff --git a/cpukit/libnetworking/libc/gethostnamadr.c b/cpukit/libnetworking/libc/gethostnamadr.c
index 7da9190cfd..d67890ada4 100644
--- a/cpukit/libnetworking/libc/gethostnamadr.c
+++ b/cpukit/libnetworking/libc/gethostnamadr.c
@@ -199,15 +199,14 @@ gethostbyaddr(const void *addr, socklen_t len, int type)
}
void
-sethostent(stayopen)
- int stayopen;
+sethostent(int stayopen)
{
_sethosthtent(stayopen);
_sethostdnsent(stayopen);
}
void
-endhostent()
+endhostent(void)
{
_endhosthtent();
_endhostdnsent();
diff --git a/cpukit/libnetworking/libc/getnetbyht.c b/cpukit/libnetworking/libc/getnetbyht.c
index 713e186ccb..b44193045b 100644
--- a/cpukit/libnetworking/libc/getnetbyht.c
+++ b/cpukit/libnetworking/libc/getnetbyht.c
@@ -63,8 +63,7 @@ static char *net_aliases[MAXALIASES];
static int _net_stayopen;
void
-_setnethtent(f)
- int f;
+_setnethtent(int f)
{
if (netf == NULL)
@@ -75,7 +74,7 @@ _setnethtent(f)
}
void
-_endnethtent()
+_endnethtent(void)
{
if (netf) {
@@ -86,7 +85,7 @@ _endnethtent()
}
struct netent *
-getnetent()
+getnetent(void)
{
char *p;
register char *cp, **q;
@@ -134,8 +133,7 @@ again:
}
struct netent *
-_getnetbyhtname(name)
- register const char *name;
+_getnetbyhtname(const char *name)
{
register struct netent *p;
register char **cp;
@@ -155,9 +153,9 @@ found:
}
struct netent *
-_getnetbyhtaddr(net, type)
- register unsigned long net;
- register int type;
+_getnetbyhtaddr(
+ unsigned long net,
+ int type)
{
register struct netent *p;
diff --git a/cpukit/libnetworking/libc/getservbyport.c b/cpukit/libnetworking/libc/getservbyport.c
index 884d600590..cd76c2de4d 100644
--- a/cpukit/libnetworking/libc/getservbyport.c
+++ b/cpukit/libnetworking/libc/getservbyport.c
@@ -61,9 +61,9 @@ int getservbyport_r(
}
struct servent *
-getservbyport(port, proto)
- int port;
- const char *proto;
+getservbyport(
+ int port,
+ const char *proto)
{
register struct servent *p;
diff --git a/cpukit/libnetworking/libc/getservent.c b/cpukit/libnetworking/libc/getservent.c
index 7133690d83..6ebe7e2761 100644
--- a/cpukit/libnetworking/libc/getservent.c
+++ b/cpukit/libnetworking/libc/getservent.c
@@ -189,8 +189,8 @@ _getservent_yp(line)
#endif
void
-setservent(f)
- int f;
+setservent(
+ int f)
{
if (servf == NULL)
servf = fopen(_PATH_SERVICES, "r" );
@@ -200,7 +200,7 @@ setservent(f)
}
void
-endservent()
+endservent(void)
{
if (servf) {
fclose(servf);
@@ -210,7 +210,7 @@ endservent()
}
struct servent *
-getservent()
+getservent(void)
{
char *p;
register char *cp, **q;
diff --git a/cpukit/libnetworking/libc/herror.c b/cpukit/libnetworking/libc/herror.c
index 621da3ec1d..e7d6ba48cb 100644
--- a/cpukit/libnetworking/libc/herror.c
+++ b/cpukit/libnetworking/libc/herror.c
@@ -76,8 +76,7 @@ int h_errno;
* print the error indicated by the h_errno value.
*/
void
-herror(s)
- const char *s;
+herror(const char *s)
{
#if defined(HERROR_USE_WRITEV)
struct iovec iov[4];
@@ -112,8 +111,7 @@ herror(s)
}
const char *
-hstrerror(err)
- int err;
+hstrerror(int err)
{
if (err < 0)
return ("Resolver internal error");
diff --git a/cpukit/libnetworking/libc/inet_addr.c b/cpukit/libnetworking/libc/inet_addr.c
index cca2f040ec..1d86052c18 100644
--- a/cpukit/libnetworking/libc/inet_addr.c
+++ b/cpukit/libnetworking/libc/inet_addr.c
@@ -67,8 +67,8 @@
* The value returned is in network order.
*/
in_addr_t
-inet_addr(cp)
- const char *cp;
+inet_addr(
+ const char *cp)
{
struct in_addr val;
@@ -85,9 +85,9 @@ inet_addr(cp)
* cannot distinguish between failure and a local broadcast address.
*/
int
-inet_aton(cp, addr)
- const char *cp;
- struct in_addr *addr;
+inet_aton(
+ const char *cp,
+ struct in_addr *addr)
{
in_addr_t val;
register int base, n;
diff --git a/cpukit/libnetworking/libc/inet_lnaof.c b/cpukit/libnetworking/libc/inet_lnaof.c
index 94f3161f64..b97cf72439 100644
--- a/cpukit/libnetworking/libc/inet_lnaof.c
+++ b/cpukit/libnetworking/libc/inet_lnaof.c
@@ -47,8 +47,8 @@
* number formats.
*/
in_addr_t
-inet_lnaof(in)
- struct in_addr in;
+inet_lnaof(
+ struct in_addr in)
{
register u_long i = ntohl(in.s_addr);
diff --git a/cpukit/libnetworking/libc/inet_netof.c b/cpukit/libnetworking/libc/inet_netof.c
index d7ed467fb5..e71f96f7f2 100644
--- a/cpukit/libnetworking/libc/inet_netof.c
+++ b/cpukit/libnetworking/libc/inet_netof.c
@@ -46,8 +46,8 @@
* address; handles class a/b/c network #'s.
*/
in_addr_t
-inet_netof(in)
- struct in_addr in;
+inet_netof(
+ struct in_addr in)
{
register u_long i = ntohl(in.s_addr);
diff --git a/cpukit/libnetworking/libc/inet_network.c b/cpukit/libnetworking/libc/inet_network.c
index 8c20c1f4f7..8cd2761ce4 100644
--- a/cpukit/libnetworking/libc/inet_network.c
+++ b/cpukit/libnetworking/libc/inet_network.c
@@ -48,8 +48,8 @@
* network numbers.
*/
in_addr_t
-inet_network(cp)
- const char *cp;
+inet_network(
+ const char *cp)
{
register u_long val, base, n, i;
register char c;
diff --git a/cpukit/libnetworking/libc/inet_ntoa.c b/cpukit/libnetworking/libc/inet_ntoa.c
index d6a99a5cc9..cea3843776 100644
--- a/cpukit/libnetworking/libc/inet_ntoa.c
+++ b/cpukit/libnetworking/libc/inet_ntoa.c
@@ -49,8 +49,8 @@
* to base 256 d.d.d.d representation.
*/
char *
-inet_ntoa(in)
- struct in_addr in;
+inet_ntoa(
+ struct in_addr in)
{
static char ret[18];
diff --git a/cpukit/libnetworking/libc/inet_ntop.c b/cpukit/libnetworking/libc/inet_ntop.c
index 5f5055b194..2e28dbbcd0 100644
--- a/cpukit/libnetworking/libc/inet_ntop.c
+++ b/cpukit/libnetworking/libc/inet_ntop.c
@@ -47,11 +47,11 @@ static const char *inet_ntop6(const u_char *src, char *dst, socklen_t size);
* Paul Vixie, 1996.
*/
const char *
-inet_ntop(af, src, dst, size)
- int af;
- const void *src;
- char *dst;
- socklen_t size;
+inet_ntop(
+ int af,
+ const void *src,
+ char *dst,
+ socklen_t size)
{
switch (af) {
case AF_INET:
@@ -77,10 +77,10 @@ inet_ntop(af, src, dst, size)
* Paul Vixie, 1996.
*/
static const char *
-inet_ntop4(src, dst, size)
- const u_char *src;
- char *dst;
- socklen_t size;
+inet_ntop4(
+ const u_char *src,
+ char *dst,
+ socklen_t size)
{
static const char fmt[] = "%u.%u.%u.%u";
char tmp[sizeof "255.255.255.255"];
@@ -100,10 +100,10 @@ inet_ntop4(src, dst, size)
* Paul Vixie, 1996.
*/
static const char *
-inet_ntop6(src, dst, size)
- const u_char *src;
- char *dst;
- socklen_t size;
+inet_ntop6(
+ const u_char *src,
+ char *dst,
+ socklen_t size)
{
/*
* Note that int32_t and int16_t need only be "at least" large enough
diff --git a/cpukit/libnetworking/libc/inet_pton.c b/cpukit/libnetworking/libc/inet_pton.c
index 77032ba6c2..963c071353 100644
--- a/cpukit/libnetworking/libc/inet_pton.c
+++ b/cpukit/libnetworking/libc/inet_pton.c
@@ -47,10 +47,10 @@ static int inet_pton6(const char *src, u_char *dst);
* Paul Vixie, 1996.
*/
int
-inet_pton(af, src, dst)
- int af;
- const char *src;
- void *dst;
+inet_pton(
+ int af,
+ const char *src,
+ void *dst)
{
switch (af) {
case AF_INET:
@@ -75,9 +75,9 @@ inet_pton(af, src, dst)
* Paul Vixie, 1996.
*/
static int
-inet_pton4(src, dst)
- const char *src;
- u_char *dst;
+inet_pton4(
+ const char *src,
+ u_char *dst)
{
static const char digits[] = "0123456789";
int saw_digit, octets, ch;
@@ -129,9 +129,9 @@ inet_pton4(src, dst)
* Paul Vixie, 1996.
*/
static int
-inet_pton6(src, dst)
- const char *src;
- u_char *dst;
+inet_pton6(
+ const char *src,
+ u_char *dst)
{
static const char xdigits_l[] = "0123456789abcdef",
xdigits_u[] = "0123456789ABCDEF";
diff --git a/cpukit/libnetworking/libc/linkaddr.c b/cpukit/libnetworking/libc/linkaddr.c
index 5b76e641d4..1ec75bd376 100644
--- a/cpukit/libnetworking/libc/linkaddr.c
+++ b/cpukit/libnetworking/libc/linkaddr.c
@@ -54,9 +54,9 @@
#define LETTER (4*3)
void
-link_addr(addr, sdl)
- const char *addr;
- struct sockaddr_dl *sdl;
+link_addr(
+ const char *addr,
+ struct sockaddr_dl *sdl)
{
char *cp = sdl->sdl_data;
char *cplim = sdl->sdl_len + (char *)sdl;
@@ -126,8 +126,8 @@ link_addr(addr, sdl)
static char hexlist[] = "0123456789abcdef";
char *
-link_ntoa(sdl)
- const struct sockaddr_dl *sdl;
+link_ntoa(
+ const struct sockaddr_dl *sdl)
{
static char obuf[64];
char *out = obuf;
diff --git a/cpukit/libnetworking/libc/map_v4v6.c b/cpukit/libnetworking/libc/map_v4v6.c
index 723b925d32..edf2a07905 100644
--- a/cpukit/libnetworking/libc/map_v4v6.c
+++ b/cpukit/libnetworking/libc/map_v4v6.c
@@ -96,10 +96,10 @@ _map_v4v6_address(const char *src, char *dst)
}
void
-_map_v4v6_hostent(hp, bpp, lenp)
- struct hostent *hp;
- char **bpp;
- int *lenp;
+_map_v4v6_hostent(
+ struct hostent *hp,
+ char **bpp,
+ int *lenp)
{
char **ap;
diff --git a/cpukit/libnetworking/libc/res_comp.c b/cpukit/libnetworking/libc/res_comp.c
index 6b85e02004..7240e56081 100644
--- a/cpukit/libnetworking/libc/res_comp.c
+++ b/cpukit/libnetworking/libc/res_comp.c
@@ -148,8 +148,7 @@ dn_skipname(const u_char *ptr, const u_char *eom) {
#define domainchar(c) ((c) > 0x20 && (c) < 0x7f)
int
-res_hnok(dn)
- const char *dn;
+res_hnok(const char *dn)
{
int ppch = '\0', pch = PERIOD, ch = *dn++;
@@ -178,8 +177,7 @@ res_hnok(dn)
* but must otherwise be as a host name.
*/
int
-res_ownok(dn)
- const char *dn;
+res_ownok(const char *dn)
{
if (asterchar(dn[0])) {
if (periodchar(dn[1]))
@@ -195,8 +193,7 @@ res_ownok(dn)
* label, but the rest of the name has to look like a host name.
*/
int
-res_mailok(dn)
- const char *dn;
+res_mailok(const char *dn)
{
int ch, escaped = 0;
@@ -225,8 +222,7 @@ res_mailok(dn)
* recommendations.
*/
int
-res_dnok(dn)
- const char *dn;
+res_dnok(const char *dn)
{
int ch;
diff --git a/cpukit/libnetworking/libc/res_debug.c b/cpukit/libnetworking/libc/res_debug.c
index a614e8437d..ce979baaf6 100644
--- a/cpukit/libnetworking/libc/res_debug.c
+++ b/cpukit/libnetworking/libc/res_debug.c
@@ -300,11 +300,12 @@ p_cdname(const u_char *cp, const u_char *msg, FILE *file) {
length supplied). */
const u_char *
-p_fqnname(cp, msg, msglen, name, namelen)
- const u_char *cp, *msg;
- int msglen;
- char *name;
- int namelen;
+p_fqnname(
+ const u_char *cp,
+ const u_char *msg,
+ int msglen,
+ char *name,
+ int namelen)
{
int n, newlen;
@@ -708,9 +709,9 @@ latlon2ul(
/* converts a zone file representation in a string to an RDATA on-the-wire
* representation. */
int
-loc_aton(ascii, binary)
- const char *ascii;
- u_char *binary;
+loc_aton(
+ const char *ascii,
+ u_char *binary)
{
const char *cp, *maxcp;
u_char *bcp;
diff --git a/cpukit/libnetworking/libc/res_init.c b/cpukit/libnetworking/libc/res_init.c
index 6cc1fb58ef..564c230311 100644
--- a/cpukit/libnetworking/libc/res_init.c
+++ b/cpukit/libnetworking/libc/res_init.c
@@ -139,7 +139,7 @@ struct __res_state _res
* Return 0 if completes successfully, -1 on error
*/
int
-res_init()
+res_init(void)
{
FILE *fp;
char *cp, **pp;
@@ -426,8 +426,9 @@ res_init()
}
static void
-res_setoptions(options, source)
- char *options, *source;
+res_setoptions(
+ char *options,
+ char *source)
{
char *cp = options;
int i;
@@ -477,8 +478,8 @@ res_setoptions(options, source)
#ifdef RESOLVSORT
/* XXX - should really support CIDR which means explicit masks always. */
static u_int32_t
-net_mask(in) /* XXX - should really use system's version of this */
- struct in_addr in;
+net_mask( /* XXX - should really use system's version of this */
+ struct in_addr in)
{
u_int32_t i = ntohl(in.s_addr);
@@ -491,7 +492,7 @@ net_mask(in) /* XXX - should really use system's version of this */
#endif
u_int
-res_randomid()
+res_randomid(void)
{
struct timeval now;
diff --git a/cpukit/libnetworking/libc/res_mkquery.c b/cpukit/libnetworking/libc/res_mkquery.c
index f97779c653..832e2df740 100644
--- a/cpukit/libnetworking/libc/res_mkquery.c
+++ b/cpukit/libnetworking/libc/res_mkquery.c
@@ -88,15 +88,15 @@
* Returns the size of the result or -1.
*/
int
-res_mkquery(op, dname, class, type, data, datalen, newrr_in, buf, buflen)
- int op; /* opcode of query */
- const char *dname; /* domain name */
- int class, type; /* class and type of query */
- const u_char *data; /* resource record data */
- int datalen; /* length of data */
- const u_char *newrr_in; /* new rr for modify or append */
- u_char *buf; /* buffer to put query */
- int buflen; /* size of buffer */
+res_mkquery(
+ int op, /* opcode of query */
+ const char *dname, /* domain name */
+ int class, int type, /* class and type of query */
+ const u_char *data, /* resource record data */
+ int datalen, /* length of data */
+ const u_char *newrr_in, /* new rr for modify or append */
+ u_char *buf, /* buffer to put query */
+ int buflen) /* size of buffer */
{
register HEADER *hp;
register u_char *cp;
diff --git a/cpukit/libnetworking/libc/res_query.c b/cpukit/libnetworking/libc/res_query.c
index 8923248351..f53327511b 100644
--- a/cpukit/libnetworking/libc/res_query.c
+++ b/cpukit/libnetworking/libc/res_query.c
@@ -104,11 +104,11 @@
* Caller must parse answer and determine whether it answers the question.
*/
int
-res_query(name, class, type, answer, anslen)
- const char *name; /* domain name */
- int class, type; /* class and type of query */
- u_char *answer; /* buffer to put answer */
- int anslen; /* size of answer buffer */
+res_query(
+ const char *name, /* domain name */
+ int class, int type, /* class and type of query */
+ u_char *answer, /* buffer to put answer */
+ int anslen) /* size of answer buffer */
{
u_char buf[MAXPACKET];
HEADER *hp = (HEADER *) answer;
@@ -180,11 +180,11 @@ res_query(name, class, type, answer, anslen)
* is detected. Error code, if any, is left in h_errno.
*/
int
-res_search(name, class, type, answer, anslen)
- const char *name; /* domain name */
- int class, type; /* class and type of query */
- u_char *answer; /* buffer to put answer */
- int anslen; /* size of answer */
+res_search(
+ const char *name, /* domain name */
+ int class, int type, /* class and type of query */
+ u_char *answer, /* buffer to put answer */
+ int anslen) /* size of answer */
{
const char *cp, * const *domain;
HEADER *hp = (HEADER *) answer;
@@ -318,11 +318,11 @@ res_search(name, class, type, answer, anslen)
* removing a trailing dot from name if domain is NULL.
*/
int
-res_querydomain(name, domain, class, type, answer, anslen)
- const char *name, *domain;
- int class, type; /* class and type of query */
- u_char *answer; /* buffer to put answer */
- int anslen; /* size of answer */
+res_querydomain(
+ const char *name, const char *domain,
+ int class, int type, /* class and type of query */
+ u_char *answer, /* buffer to put answer */
+ int anslen) /* size of answer */
{
char nbuf[MAXDNAME];
const char *longname = nbuf;
@@ -366,8 +366,7 @@ res_querydomain(name, domain, class, type, answer, anslen)
}
const char *
-hostalias(name)
- const char *name;
+hostalias(const char *name)
{
register char *cp1, *cp2;
FILE *fp;
diff --git a/cpukit/libnetworking/nfs/bootp_subr.c b/cpukit/libnetworking/nfs/bootp_subr.c
index 66ff4ef564..7f46582a41 100644
--- a/cpukit/libnetworking/nfs/bootp_subr.c
+++ b/cpukit/libnetworking/nfs/bootp_subr.c
@@ -287,10 +287,10 @@ void *bootp_strdup_realloc(char *dst,const char *src)
}
int
-bootpc_call(call,reply,procp)
- struct bootp_packet *call;
- struct bootp_packet *reply; /* output */
- struct proc *procp;
+bootpc_call(
+ struct bootp_packet *call,
+ struct bootp_packet *reply, /* output */
+ struct proc *procp)
{
struct socket *so;
struct sockaddr_in *sin;
diff --git a/cpukit/libnetworking/rtems/rtems_glue.c b/cpukit/libnetworking/rtems/rtems_glue.c
index 1508412940..07e70e5c39 100644
--- a/cpukit/libnetworking/rtems/rtems_glue.c
+++ b/cpukit/libnetworking/rtems/rtems_glue.c
@@ -378,8 +378,7 @@ rtems_bsdnet_semaphore_release (void)
* Wait for something to happen to a socket buffer
*/
int
-sbwait(sb)
- struct sockbuf *sb;
+sbwait(struct sockbuf *sb)
{
rtems_event_set events;
rtems_id tid;
@@ -433,9 +432,9 @@ sbwait(sb)
* Wake up the task waiting on a socket buffer.
*/
void
-sowakeup(so, sb)
- register struct socket *so;
- register struct sockbuf *sb;
+sowakeup(
+ struct socket *so,
+ struct sockbuf *sb)
{
if (sb->sb_flags & SB_WAIT) {
sb->sb_flags &= ~SB_WAIT;
@@ -450,8 +449,7 @@ sowakeup(so, sb)
* For now, a socket can be used by only one task at a time.
*/
int
-sb_lock(sb)
- register struct sockbuf *sb;
+sb_lock(struct sockbuf *sb)
{
rtems_panic ("Socket buffer is already in use.");
return 0;
@@ -958,7 +956,7 @@ rtems_bsdnet_setup (void)
* Initialize the network
*/
int
-rtems_bsdnet_initialize_network (void)
+rtems_bsdnet_initialize_network(void)
{
struct rtems_bsdnet_ifconfig *ifp;
@@ -989,7 +987,7 @@ rtems_bsdnet_initialize_network (void)
/*
* Attach a network interface.
*/
-void rtems_bsdnet_attach (struct rtems_bsdnet_ifconfig *ifp)
+void rtems_bsdnet_attach(struct rtems_bsdnet_ifconfig *ifp)
{
if (ifp) {
rtems_bsdnet_semaphore_obtain ();
@@ -1013,7 +1011,7 @@ void rtems_bsdnet_detach (struct rtems_bsdnet_ifconfig *ifp)
/*
* Interface Configuration.
*/
-int rtems_bsdnet_ifconfig (const char *ifname, uint32_t cmd, void *param)
+int rtems_bsdnet_ifconfig(const char *ifname, uint32_t cmd, void *param)
{
int s, r = 0;
struct ifreq ifreq;
@@ -1208,7 +1206,7 @@ rtems_bsdnet_parse_driver_name (const struct rtems_bsdnet_ifconfig *config, char
* more than a minute or so?
*/
int
-m_mballoc (int nmb, int nowait)
+m_mballoc(int nmb, int nowait)
{
if (nowait)
return 0;
@@ -1237,7 +1235,7 @@ m_mballoc (int nmb, int nowait)
}
int
-m_clalloc(ncl, nowait)
+m_clalloc(int ncl, int nowait)
{
if (nowait)
return 0;