diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2017-12-04 07:52:13 +0300 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2018-01-17 20:47:27 +0300 |
commit | 77f16db546d9c214f639d1ea84c58d99f9e4d282 (patch) | |
tree | 38362015be02e1450ef8c2e83d66749e587f5455 /newlib/libc/xdr | |
parent | 9087163804df8af6dc2ec1f675a2341c25f7795f (diff) |
ansification: remove _EXFNPTR, _EXPARM
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc/xdr')
-rw-r--r-- | newlib/libc/xdr/xdr_private.h | 2 | ||||
-rw-r--r-- | newlib/libc/xdr/xdr_rec.c | 4 | ||||
-rw-r--r-- | newlib/libc/xdr/xdr_sizeof.c | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/newlib/libc/xdr/xdr_private.h b/newlib/libc/xdr/xdr_private.h index 2b4581866..3b071d668 100644 --- a/newlib/libc/xdr/xdr_private.h +++ b/newlib/libc/xdr/xdr_private.h @@ -41,7 +41,7 @@ extern "C" { #endif -typedef void _EXFNPTR (xdr_vprintf_t, (const char *, va_list)); +typedef void (*xdr_vprintf_t) (const char *, va_list); xdr_vprintf_t _EXFUN (xdr_set_vprintf, (xdr_vprintf_t)); diff --git a/newlib/libc/xdr/xdr_rec.c b/newlib/libc/xdr/xdr_rec.c index f46a9a3fa..9051d522f 100644 --- a/newlib/libc/xdr/xdr_rec.c +++ b/newlib/libc/xdr/xdr_rec.c @@ -173,8 +173,8 @@ xdrrec_create (XDR * xdrs, u_int sendsize, u_int recvsize, void *tcp_handle, - int _EXPARM (readit, (void *, void *, int)), - int _EXPARM (writeit, (void *, void *, int))) + int (*readit) (void *, void *, int), + int (*writeit) (void *, void *, int)) { RECSTREAM *rstrm; /* Although sendsize and recvsize are u_int, we require diff --git a/newlib/libc/xdr/xdr_sizeof.c b/newlib/libc/xdr/xdr_sizeof.c index bf02cf5e7..e086d30e7 100644 --- a/newlib/libc/xdr/xdr_sizeof.c +++ b/newlib/libc/xdr/xdr_sizeof.c @@ -142,9 +142,9 @@ xdr_sizeof (xdrproc_t func, struct xdr_ops ops; bool_t stat; /* to stop ANSI-C compiler from complaining */ - typedef bool_t _EXFNPTR (dummyfunc1, (XDR *, long *)); - typedef bool_t _EXFNPTR (dummyfunc2, (XDR *, caddr_t, u_int)); - typedef bool_t _EXFNPTR (dummyfunc3, (XDR *, int32_t *)); + typedef bool_t (*dummyfunc1) (XDR *, long *); + typedef bool_t (*dummyfunc2) (XDR *, caddr_t, u_int); + typedef bool_t (*dummyfunc3) (XDR *, int32_t *); ops.x_putlong = x_putlong; ops.x_putbytes = x_putbytes; |