forked from Imagelibrary/rtems
Misc. ansifications.
This commit is contained in:
@@ -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/auth.h>
|
||||||
#include <rpc/clnt.h>
|
#include <rpc/clnt.h>
|
||||||
|
|
||||||
static char *auth_errmsg();
|
static char *auth_errmsg(enum auth_stat stat);
|
||||||
#define CLNT_PERROR_BUFLEN 256
|
#define CLNT_PERROR_BUFLEN 256
|
||||||
|
|
||||||
#define buf (rtems_rpc_task_variables->clnt_perror_buf)
|
#define buf (rtems_rpc_task_variables->clnt_perror_buf)
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
_buf()
|
_buf(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (buf == 0)
|
if (buf == 0)
|
||||||
@@ -65,9 +65,9 @@ _buf()
|
|||||||
* Print reply error info
|
* Print reply error info
|
||||||
*/
|
*/
|
||||||
char *
|
char *
|
||||||
clnt_sperror(rpch, s)
|
clnt_sperror(
|
||||||
CLIENT *rpch;
|
CLIENT *rpch,
|
||||||
const char *s;
|
const char *s)
|
||||||
{
|
{
|
||||||
struct rpc_err e;
|
struct rpc_err e;
|
||||||
char *err;
|
char *err;
|
||||||
@@ -140,9 +140,9 @@ clnt_sperror(rpch, s)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
clnt_perror(rpch, s)
|
clnt_perror(
|
||||||
CLIENT *rpch;
|
CLIENT *rpch,
|
||||||
const char *s;
|
const char *s)
|
||||||
{
|
{
|
||||||
(void) fprintf(stderr,"%s\n",clnt_sperror(rpch,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
|
* This interface for use by clntrpc
|
||||||
*/
|
*/
|
||||||
char *
|
char *
|
||||||
clnt_sperrno(stat)
|
clnt_sperrno(
|
||||||
enum clnt_stat stat;
|
enum clnt_stat stat)
|
||||||
{
|
{
|
||||||
unsigned int errnum = stat;
|
unsigned int errnum = stat;
|
||||||
|
|
||||||
@@ -186,16 +186,16 @@ clnt_sperrno(stat)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
clnt_perrno(num)
|
clnt_perrno(
|
||||||
enum clnt_stat num;
|
enum clnt_stat num)
|
||||||
{
|
{
|
||||||
(void) fprintf(stderr,"%s\n",clnt_sperrno(num));
|
(void) fprintf(stderr,"%s\n",clnt_sperrno(num));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
clnt_spcreateerror(s)
|
clnt_spcreateerror(
|
||||||
const char *s;
|
const char *s)
|
||||||
{
|
{
|
||||||
char *str = _buf();
|
char *str = _buf();
|
||||||
|
|
||||||
@@ -224,8 +224,8 @@ clnt_spcreateerror(s)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
clnt_pcreateerror(s)
|
clnt_pcreateerror(
|
||||||
const char *s;
|
const char *s)
|
||||||
{
|
{
|
||||||
(void) fprintf(stderr,"%s\n",clnt_spcreateerror(s));
|
(void) fprintf(stderr,"%s\n",clnt_spcreateerror(s));
|
||||||
}
|
}
|
||||||
@@ -242,8 +242,8 @@ static const char *const auth_errlist[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
auth_errmsg(stat)
|
auth_errmsg(
|
||||||
enum auth_stat stat;
|
enum auth_stat stat)
|
||||||
{
|
{
|
||||||
unsigned int errnum = stat;
|
unsigned int errnum = stat;
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
* interface only if there are no other possible interfaces.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
get_myaddress(addr)
|
get_myaddress(
|
||||||
struct sockaddr_in *addr;
|
struct sockaddr_in *addr)
|
||||||
{
|
{
|
||||||
int s;
|
int s;
|
||||||
char buf[BUFSIZ];
|
char buf[BUFSIZ];
|
||||||
|
|||||||
@@ -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
|
* Unix longhand authenticator
|
||||||
*/
|
*/
|
||||||
enum auth_stat
|
enum auth_stat
|
||||||
_svcauth_unix(rqst, msg)
|
_svcauth_unix(
|
||||||
register struct svc_req *rqst;
|
struct svc_req *rqst,
|
||||||
register struct rpc_msg *msg;
|
struct rpc_msg *msg )
|
||||||
{
|
{
|
||||||
register enum auth_stat stat;
|
register enum auth_stat stat;
|
||||||
XDR xdrs;
|
XDR xdrs;
|
||||||
@@ -140,9 +140,9 @@ done:
|
|||||||
*/
|
*/
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
enum auth_stat
|
enum auth_stat
|
||||||
_svcauth_short(rqst, msg)
|
_svcauth_short(
|
||||||
struct svc_req *rqst;
|
struct svc_req *rqst,
|
||||||
struct rpc_msg *msg;
|
struct rpc_msg *msg )
|
||||||
{
|
{
|
||||||
return (AUTH_REJECTEDCRED);
|
return (AUTH_REJECTEDCRED);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user