summaryrefslogtreecommitdiffstats
path: root/cpukit/librpc/src/rpc/clnt_perror.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/librpc/src/rpc/clnt_perror.c')
-rw-r--r--cpukit/librpc/src/rpc/clnt_perror.c36
1 files changed, 18 insertions, 18 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;