summaryrefslogtreecommitdiffstats
path: root/cpukit/librpc/src/rpc
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-08-01 15:58:16 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-08-01 15:58:16 +0000
commitb58315677d5cebc3898a558bd0bbf79f7a379cea (patch)
treea637c1d4ffac21a5efe86370e4c9e1b079ea3fa9 /cpukit/librpc/src/rpc
parent2008-08-01 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-b58315677d5cebc3898a558bd0bbf79f7a379cea.tar.bz2
Misc. ansifications.
Diffstat (limited to 'cpukit/librpc/src/rpc')
-rw-r--r--cpukit/librpc/src/rpc/clnt_perror.c36
-rw-r--r--cpukit/librpc/src/rpc/get_myaddress.c4
-rw-r--r--cpukit/librpc/src/rpc/svc_auth_unix.c12
3 files changed, 26 insertions, 26 deletions
diff --git a/cpukit/librpc/src/rpc/clnt_perror.c b/cpukit/librpc/src/rpc/clnt_perror.c
index 967f8d1d7c..1a644fcfc9 100644
--- a/cpukit/librpc/src/rpc/clnt_perror.c
+++ b/cpukit/librpc/src/rpc/clnt_perror.c
@@ -47,13 +47,13 @@ static char *rcsid = "$FreeBSD: src/lib/libc/rpc/clnt_perror.c,v 1.11 1999/08/28
#include <rpc/auth.h>
#include <rpc/clnt.h>
-static char *auth_errmsg();
+static char *auth_errmsg(enum auth_stat stat);
#define CLNT_PERROR_BUFLEN 256
#define buf (rtems_rpc_task_variables->clnt_perror_buf)
static char *
-_buf()
+_buf(void)
{
if (buf == 0)
@@ -65,9 +65,9 @@ _buf()
* Print reply error info
*/
char *
-clnt_sperror(rpch, s)
- CLIENT *rpch;
- const char *s;
+clnt_sperror(
+ CLIENT *rpch,
+ const char *s)
{
struct rpc_err e;
char *err;
@@ -140,9 +140,9 @@ clnt_sperror(rpch, s)
}
void
-clnt_perror(rpch, s)
- CLIENT *rpch;
- const char *s;
+clnt_perror(
+ CLIENT *rpch,
+ const char *s)
{
(void) fprintf(stderr,"%s\n",clnt_sperror(rpch,s));
}
@@ -174,8 +174,8 @@ static const char *const rpc_errlist[] = {
* This interface for use by clntrpc
*/
char *
-clnt_sperrno(stat)
- enum clnt_stat stat;
+clnt_sperrno(
+ enum clnt_stat stat)
{
unsigned int errnum = stat;
@@ -186,16 +186,16 @@ clnt_sperrno(stat)
}
void
-clnt_perrno(num)
- enum clnt_stat num;
+clnt_perrno(
+ enum clnt_stat num)
{
(void) fprintf(stderr,"%s\n",clnt_sperrno(num));
}
char *
-clnt_spcreateerror(s)
- const char *s;
+clnt_spcreateerror(
+ const char *s)
{
char *str = _buf();
@@ -224,8 +224,8 @@ clnt_spcreateerror(s)
}
void
-clnt_pcreateerror(s)
- const char *s;
+clnt_pcreateerror(
+ const char *s)
{
(void) fprintf(stderr,"%s\n",clnt_spcreateerror(s));
}
@@ -242,8 +242,8 @@ static const char *const auth_errlist[] = {
};
static char *
-auth_errmsg(stat)
- enum auth_stat stat;
+auth_errmsg(
+ enum auth_stat stat)
{
unsigned int errnum = stat;
diff --git a/cpukit/librpc/src/rpc/get_myaddress.c b/cpukit/librpc/src/rpc/get_myaddress.c
index 869bd51be4..60357cff8f 100644
--- a/cpukit/librpc/src/rpc/get_myaddress.c
+++ b/cpukit/librpc/src/rpc/get_myaddress.c
@@ -59,8 +59,8 @@ static char *rcsid = "$FreeBSD: src/lib/libc/rpc/get_myaddress.c,v 1.17 2000/01/
* interface only if there are no other possible interfaces.
*/
int
-get_myaddress(addr)
- struct sockaddr_in *addr;
+get_myaddress(
+ struct sockaddr_in *addr)
{
int s;
char buf[BUFSIZ];
diff --git a/cpukit/librpc/src/rpc/svc_auth_unix.c b/cpukit/librpc/src/rpc/svc_auth_unix.c
index 8b4e257a2c..09fb1f8c6b 100644
--- a/cpukit/librpc/src/rpc/svc_auth_unix.c
+++ b/cpukit/librpc/src/rpc/svc_auth_unix.c
@@ -52,9 +52,9 @@ static char *rcsid = "$FreeBSD: src/lib/libc/rpc/svc_auth_unix.c,v 1.8 1999/08/2
* Unix longhand authenticator
*/
enum auth_stat
-_svcauth_unix(rqst, msg)
- register struct svc_req *rqst;
- register struct rpc_msg *msg;
+_svcauth_unix(
+ struct svc_req *rqst,
+ struct rpc_msg *msg )
{
register enum auth_stat stat;
XDR xdrs;
@@ -140,9 +140,9 @@ done:
*/
/*ARGSUSED*/
enum auth_stat
-_svcauth_short(rqst, msg)
- struct svc_req *rqst;
- struct rpc_msg *msg;
+_svcauth_short(
+ struct svc_req *rqst,
+ struct rpc_msg *msg )
{
return (AUTH_REJECTEDCRED);
}