diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-26 22:04:19 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-26 22:04:19 +0000 |
commit | 05e75260d6952308d7c865ff67c0e3678b7ba935 (patch) | |
tree | ac1a5d0ab7904783917b52ffa5489e8367743ff7 | |
parent | 2fec342738cefe71910e8e8ab8636accfc5867bc (diff) |
Get rid of missing prototype warnings
98 files changed, 203 insertions, 66 deletions
diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c index 241d0222a..954f68126 100644 --- a/ldso/ldso/dl-elf.c +++ b/ldso/ldso/dl-elf.c @@ -797,6 +797,7 @@ void _dl_parse_dynamic_info(ElfW(Dyn) *dpnt, unsigned long dynamic_info[], void /* we want this in ldso.so and libdl.a but nowhere else */ #ifdef __USE_GNU #if defined IS_IN_rtld || (defined IS_IN_libdl && ! defined SHARED) +extern __typeof(dl_iterate_phdr) __dl_iterate_phdr; int __dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info, size_t size, void *data), void *data) { diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c index b1d3d8009..c3538426b 100644 --- a/ldso/ldso/ldso.c +++ b/ldso/ldso/ldso.c @@ -74,7 +74,8 @@ static int _dl_suid_ok(void); * can set an internal breakpoint on it, so that we are notified when the * address mapping is changed in some way. */ -void _dl_debug_state(void) +void _dl_debug_state(void); +void _dl_debug_state() { } diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c index 37b1c3abd..5c542e8ad 100644 --- a/ldso/libdl/libdl.c +++ b/ldso/libdl/libdl.c @@ -125,7 +125,8 @@ static const char *dl_error_names[] = { "Unable to resolve symbol" }; -void __attribute__ ((destructor)) dl_cleanup(void) +void dl_cleanup(void) __attribute__ ((destructor)); +void dl_cleanup(void) { struct dyn_elf *d; for (d = _dl_handles; d; d = d->next_handle) { diff --git a/libc/inet/ntohl.c b/libc/inet/ntohl.c index 4fbdf7096..87a034bf0 100644 --- a/libc/inet/ntohl.c +++ b/libc/inet/ntohl.c @@ -22,43 +22,48 @@ #include <endian.h> #include <byteswap.h> +uint32_t ntohl (uint32_t x); +uint16_t ntohs (uint16_t x); +uint32_t htonl (uint32_t x); +uint16_t htons (uint16_t x); + #if __BYTE_ORDER == __BIG_ENDIAN -extern uint32_t ntohl (uint32_t x) +uint32_t ntohl (uint32_t x) { return x; } -extern uint16_t ntohs (uint16_t x) +uint16_t ntohs (uint16_t x) { return x; } -extern uint32_t htonl (uint32_t x) +uint32_t htonl (uint32_t x) { return x; } -extern uint16_t htons (uint16_t x) +uint16_t htons (uint16_t x) { return x; } #elif __BYTE_ORDER == __LITTLE_ENDIAN -extern uint32_t ntohl (uint32_t x) +uint32_t ntohl (uint32_t x) { return __bswap_32(x); } -extern uint16_t ntohs (uint16_t x) +uint16_t ntohs (uint16_t x) { return __bswap_16(x); } -extern uint32_t htonl (uint32_t x) +uint32_t htonl (uint32_t x) { return __bswap_32(x); } -extern uint16_t htons (uint16_t x) +uint16_t htons (uint16_t x) { return __bswap_16(x); } diff --git a/libc/inet/opensock.c b/libc/inet/opensock.c index 4db86bd7b..a2c09dcf5 100644 --- a/libc/inet/opensock.c +++ b/libc/inet/opensock.c @@ -29,7 +29,8 @@ libc_hidden_proto(socket) /* Return a socket of any type. The socket can be used in subsequent ioctl calls to talk to the kernel. */ -int attribute_hidden +int __opensock(void) attribute_hidden; +int __opensock (void) { int fd; diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c index 0b479ee20..885413db8 100644 --- a/libc/inet/resolv.c +++ b/libc/inet/resolv.c @@ -600,7 +600,13 @@ int attribute_hidden __decode_answer(unsigned char *message, int offset, #endif #ifdef L_encodep -int attribute_hidden __encode_packet(struct resolv_header *h, +int __encode_packet(struct resolv_header *h, + struct resolv_question **q, + struct resolv_answer **an, + struct resolv_answer **ns, + struct resolv_answer **ar, + unsigned char *dest, int maxlen) attribute_hidden; +int __encode_packet(struct resolv_header *h, struct resolv_question **q, struct resolv_answer **an, struct resolv_answer **ns, @@ -657,13 +663,15 @@ int attribute_hidden __encode_packet(struct resolv_header *h, #endif #ifdef L_decodep -int attribute_hidden __decode_packet(unsigned char *data, struct resolv_header *h) +int __decode_packet(unsigned char *data, struct resolv_header *h) attribute_hidden; +int __decode_packet(unsigned char *data, struct resolv_header *h) { return __decode_header(data, h); } #endif #ifdef L_formquery +int __form_query(int id, const char *name, int type, unsigned char *packet, int maxlen); int __form_query(int id, const char *name, int type, unsigned char *packet, int maxlen) { diff --git a/libc/inet/rpc/create_xid.c b/libc/inet/rpc/create_xid.c index 3527eef17..3b90d7a48 100644 --- a/libc/inet/rpc/create_xid.c +++ b/libc/inet/rpc/create_xid.c @@ -41,7 +41,8 @@ static pthread_mutex_t createxid_lock = PTHREAD_MUTEX_INITIALIZER; static int is_initialized; static struct drand48_data __rpc_lrand48_data; -u_long attribute_hidden _create_xid (void) +u_long _create_xid (void) attribute_hidden; +u_long _create_xid (void) { unsigned long res; diff --git a/libc/inet/rpc/rcmd.c b/libc/inet/rpc/rcmd.c index 1bd511d26..6fcb01738 100644 --- a/libc/inet/rpc/rcmd.c +++ b/libc/inet/rpc/rcmd.c @@ -532,6 +532,7 @@ iruserok2 (raddr, superuser, ruser, luser, rhost) } /* This is the exported version. */ +int iruserok (u_int32_t raddr, int superuser, const char * ruser, const char * luser); int iruserok (u_int32_t raddr, int superuser, const char * ruser, const char * luser) { return iruserok2 (raddr, superuser, ruser, luser, "-"); @@ -550,6 +551,8 @@ int iruserok (u_int32_t raddr, int superuser, const char * ruser, const char * l * Returns 0 if ok, -1 if not ok. */ int +__ivaliduser(FILE *hostf, u_int32_t raddr, const char *luser, const char *ruser); +int __ivaliduser(FILE *hostf, u_int32_t raddr, const char *luser, const char *ruser) { return __ivaliduser2(hostf, raddr, luser, ruser, "-"); diff --git a/libc/inet/rpc/sa_len.c b/libc/inet/rpc/sa_len.c index 21a6417af..3b37eba44 100644 --- a/libc/inet/rpc/sa_len.c +++ b/libc/inet/rpc/sa_len.c @@ -31,7 +31,8 @@ #include <netrose/rose.h> #endif -int attribute_hidden __libc_sa_len (sa_family_t af) +int __libc_sa_len (sa_family_t af) attribute_hidden; +int __libc_sa_len (sa_family_t af) { switch (af) { diff --git a/libc/inet/rpc/svc_authux.c b/libc/inet/rpc/svc_authux.c index 3afcfc5d4..ef8476784 100644 --- a/libc/inet/rpc/svc_authux.c +++ b/libc/inet/rpc/svc_authux.c @@ -54,7 +54,8 @@ libc_hidden_proto(xdr_authunix_parms) /* * Unix longhand authenticator */ -attribute_hidden +enum auth_stat +_svcauth_unix (struct svc_req *rqst, struct rpc_msg *msg) attribute_hidden; enum auth_stat _svcauth_unix (struct svc_req *rqst, struct rpc_msg *msg) { @@ -153,7 +154,8 @@ done: * Looks up longhand in a cache. */ /*ARGSUSED */ -attribute_hidden +enum auth_stat +_svcauth_short (struct svc_req *rqst attribute_unused, struct rpc_msg *msg attribute_unused) attribute_hidden; enum auth_stat _svcauth_short (struct svc_req *rqst attribute_unused, struct rpc_msg *msg attribute_unused) { diff --git a/libc/inet/rpc/svc_simple.c b/libc/inet/rpc/svc_simple.c index a40f2b7b4..075b930b1 100644 --- a/libc/inet/rpc/svc_simple.c +++ b/libc/inet/rpc/svc_simple.c @@ -90,6 +90,8 @@ static void universal (struct svc_req *rqstp, SVCXPRT *transp_s); static SVCXPRT *transp; #endif +int registerrpc (u_long prognum, u_long versnum, u_long procnum, + char *(*progname) (char *), xdrproc_t inproc, xdrproc_t outproc); int registerrpc (u_long prognum, u_long versnum, u_long procnum, char *(*progname) (char *), xdrproc_t inproc, xdrproc_t outproc) diff --git a/libc/inet/rpc/svc_tcp.c b/libc/inet/rpc/svc_tcp.c index 8f2863f76..c94f2de07 100644 --- a/libc/inet/rpc/svc_tcp.c +++ b/libc/inet/rpc/svc_tcp.c @@ -232,6 +232,8 @@ svctcp_create (int sock, u_int sendsize, u_int recvsize) * descriptor as its first input. */ SVCXPRT * +svcfd_create (int fd, u_int sendsize, u_int recvsize); +SVCXPRT * svcfd_create (int fd, u_int sendsize, u_int recvsize) { return makefd_xprt (fd, sendsize, recvsize); diff --git a/libc/inet/rpc/svc_udp.c b/libc/inet/rpc/svc_udp.c index 4be2782fa..53ef7ab35 100644 --- a/libc/inet/rpc/svc_udp.c +++ b/ |