|
|
25845f |
commit 41075ae3e7f406e67d51da8cc5e89e397710d54b
|
|
|
25845f |
Author: Joseph Myers <joseph@codesourcery.com>
|
|
|
25845f |
Date: Tue Oct 20 11:52:27 2015 +0000
|
|
|
25845f |
|
|
|
25845f |
Convert 29 more function definitions to prototype style (multiple parameters in one K&R parameter declaration).
|
|
|
25845f |
|
|
|
25845f |
This automatically-generated patch converts 29 function definitions in
|
|
|
25845f |
glibc (including one in an example in the manual) from old-style K&R
|
|
|
25845f |
to prototype-style. Following my other recent such patches, this one
|
|
|
25845f |
deals with the case of function definitions where one K&R parameter
|
|
|
25845f |
declaration declares multiple parameters, as in:
|
|
|
25845f |
|
|
|
25845f |
void
|
|
|
25845f |
foo (a, b)
|
|
|
25845f |
int a, *b;
|
|
|
25845f |
{
|
|
|
25845f |
}
|
|
|
25845f |
|
|
|
25845f |
Tested for x86_64 and x86 (testsuite, and that installed stripped
|
|
|
25845f |
shared libraries are unchanged by the patch).
|
|
|
25845f |
|
|
|
25845f |
* crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
|
|
|
25845f |
definition.
|
|
|
25845f |
(_ufc_doit_r): Likewise.
|
|
|
25845f |
* crypt/crypt_util.c (_ufc_copymem): Likewise.
|
|
|
25845f |
(_ufc_output_conversion_r): Likewise.
|
|
|
25845f |
* inet/inet_mkadr.c (__inet_makeaddr): Likewise.
|
|
|
25845f |
* inet/rcmd.c (rcmd_af): Likewise.
|
|
|
25845f |
(rcmd): Likewise.
|
|
|
25845f |
(ruserok_af): Likewise.
|
|
|
25845f |
(ruserok): Likewise.
|
|
|
25845f |
(ruserok2_sa): Likewise.
|
|
|
25845f |
(ruserok_sa): Likewise.
|
|
|
25845f |
(iruserok_af): Likewise.
|
|
|
25845f |
(iruserok): Likewise.
|
|
|
25845f |
(__ivaliduser): Likewise.
|
|
|
25845f |
(__validuser2_sa): Likewise.
|
|
|
25845f |
* inet/rexec.c (rexec_af): Likewise.
|
|
|
25845f |
(rexec): Likewise.
|
|
|
25845f |
* inet/ruserpass.c (ruserpass): Likewise.
|
|
|
25845f |
* locale/programs/xmalloc.c (xcalloc): Likewise.
|
|
|
25845f |
* manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
|
|
|
25845f |
* math/w_drem.c (__drem): Likewise.
|
|
|
25845f |
* math/w_dremf.c (__dremf): Likewise.
|
|
|
25845f |
* math/w_dreml.c (__dreml): Likewise.
|
|
|
25845f |
* misc/daemon.c (daemon): Likewise.
|
|
|
25845f |
* resolv/res_debug.c (p_fqnname): Likewise.
|
|
|
25845f |
* stdlib/div.c (div): Likewise.
|
|
|
25845f |
* string/memcmp.c (memcmp_bytes): Likewise.
|
|
|
25845f |
* sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
|
|
|
25845f |
* sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
|
|
|
25845f |
|
|
|
25845f |
diff --git a/crypt/crypt.c b/crypt/crypt.c
|
|
|
25845f |
index 34b8f2e280263f7a..c86f8a8ab0663f47 100644
|
|
|
25845f |
--- a/crypt/crypt.c
|
|
|
25845f |
+++ b/crypt/crypt.c
|
|
|
25845f |
@@ -36,9 +36,8 @@
|
|
|
25845f |
#define SBA(sb, v) (*(long32*)((char*)(sb)+(v)))
|
|
|
25845f |
|
|
|
25845f |
void
|
|
|
25845f |
-_ufc_doit_r(itr, __data, res)
|
|
|
25845f |
- ufc_long itr, *res;
|
|
|
25845f |
- struct crypt_data * __restrict __data;
|
|
|
25845f |
+_ufc_doit_r (ufc_long itr, struct crypt_data * __restrict __data,
|
|
|
25845f |
+ ufc_long *res)
|
|
|
25845f |
{
|
|
|
25845f |
int i;
|
|
|
25845f |
long32 s, *k;
|
|
|
25845f |
@@ -82,9 +81,8 @@ _ufc_doit_r(itr, __data, res)
|
|
|
25845f |
#define SBA(sb, v) (*(long64*)((char*)(sb)+(v)))
|
|
|
25845f |
|
|
|
25845f |
void
|
|
|
25845f |
-_ufc_doit_r(itr, __data, res)
|
|
|
25845f |
- ufc_long itr, *res;
|
|
|
25845f |
- struct crypt_data * __restrict __data;
|
|
|
25845f |
+_ufc_doit_r (ufc_long itr, struct crypt_data * __restrict __data,
|
|
|
25845f |
+ ufc_long *res)
|
|
|
25845f |
{
|
|
|
25845f |
int i;
|
|
|
25845f |
long64 l, r, s, *k;
|
|
|
25845f |
diff --git a/crypt/crypt_util.c b/crypt/crypt_util.c
|
|
|
25845f |
index 954bbfcfebd169b6..9a48e27a81ea7eb3 100644
|
|
|
25845f |
--- a/crypt/crypt_util.c
|
|
|
25845f |
+++ b/crypt/crypt_util.c
|
|
|
25845f |
@@ -312,9 +312,7 @@ _ufc_clearmem (char *start, int cnt)
|
|
|
25845f |
}
|
|
|
25845f |
|
|
|
25845f |
void
|
|
|
25845f |
-_ufc_copymem(from, to, cnt)
|
|
|
25845f |
- char *from, *to;
|
|
|
25845f |
- int cnt;
|
|
|
25845f |
+_ufc_copymem (char *from, char *to, int cnt)
|
|
|
25845f |
{
|
|
|
25845f |
while(cnt--)
|
|
|
25845f |
*to++ = *from++;
|
|
|
25845f |
@@ -770,10 +768,8 @@ _ufc_dofinalperm_r (ufc_long *res, struct crypt_data * __restrict __data)
|
|
|
25845f |
*/
|
|
|
25845f |
|
|
|
25845f |
void
|
|
|
25845f |
-_ufc_output_conversion_r(v1, v2, salt, __data)
|
|
|
25845f |
- ufc_long v1, v2;
|
|
|
25845f |
- const char *salt;
|
|
|
25845f |
- struct crypt_data * __restrict __data;
|
|
|
25845f |
+_ufc_output_conversion_r (ufc_long v1, ufc_long v2, const char *salt,
|
|
|
25845f |
+ struct crypt_data * __restrict __data)
|
|
|
25845f |
{
|
|
|
25845f |
int i, s, shf;
|
|
|
25845f |
|
|
|
25845f |
diff --git a/inet/rcmd.c b/inet/rcmd.c
|
|
|
25845f |
index efca27d674720e9c..9f7455eb1ca29045 100644
|
|
|
25845f |
--- a/inet/rcmd.c
|
|
|
25845f |
+++ b/inet/rcmd.c
|
|
|
25845f |
@@ -103,12 +103,8 @@ libc_hidden_proto (iruserok_af)
|
|
|
25845f |
libc_freeres_ptr(static char *ahostbuf);
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-rcmd_af(ahost, rport, locuser, remuser, cmd, fd2p, af)
|
|
|
25845f |
- char **ahost;
|
|
|
25845f |
- u_short rport;
|
|
|
25845f |
- const char *locuser, *remuser, *cmd;
|
|
|
25845f |
- int *fd2p;
|
|
|
25845f |
- sa_family_t af;
|
|
|
25845f |
+rcmd_af (char **ahost, u_short rport, const char *locuser, const char *remuser,
|
|
|
25845f |
+ const char *cmd, int *fd2p, sa_family_t af)
|
|
|
25845f |
{
|
|
|
25845f |
char paddr[INET6_ADDRSTRLEN];
|
|
|
25845f |
struct addrinfo hints, *res, *ai;
|
|
|
25845f |
@@ -360,11 +356,8 @@ bad:
|
|
|
25845f |
libc_hidden_def (rcmd_af)
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
|
|
|
25845f |
- char **ahost;
|
|
|
25845f |
- u_short rport;
|
|
|
25845f |
- const char *locuser, *remuser, *cmd;
|
|
|
25845f |
- int *fd2p;
|
|
|
25845f |
+rcmd (char **ahost, u_short rport, const char *locuser, const char *remuser,
|
|
|
25845f |
+ const char *cmd, int *fd2p)
|
|
|
25845f |
{
|
|
|
25845f |
return rcmd_af (ahost, rport, locuser, remuser, cmd, fd2p, AF_INET);
|
|
|
25845f |
}
|
|
|
25845f |
@@ -434,10 +427,8 @@ int __check_rhosts_file = 1;
|
|
|
25845f |
char *__rcmd_errstr;
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-ruserok_af(rhost, superuser, ruser, luser, af)
|
|
|
25845f |
- const char *rhost, *ruser, *luser;
|
|
|
25845f |
- int superuser;
|
|
|
25845f |
- sa_family_t af;
|
|
|
25845f |
+ruserok_af (const char *rhost, int superuser, const char *ruser,
|
|
|
25845f |
+ const char *luser, sa_family_t af)
|
|
|
25845f |
{
|
|
|
25845f |
struct addrinfo hints, *res, *res0;
|
|
|
25845f |
int gai;
|
|
|
25845f |
@@ -461,9 +452,8 @@ ruserok_af(rhost, superuser, ruser, luser, af)
|
|
|
25845f |
libc_hidden_def (ruserok_af)
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-ruserok(rhost, superuser, ruser, luser)
|
|
|
25845f |
- const char *rhost, *ruser, *luser;
|
|
|
25845f |
- int superuser;
|
|
|
25845f |
+ruserok (const char *rhost, int superuser, const char *ruser,
|
|
|
25845f |
+ const char *luser)
|
|
|
25845f |
{
|
|
|
25845f |
return ruserok_af(rhost, superuser, ruser, luser, AF_INET);
|
|
|
25845f |
}
|
|
|
25845f |
@@ -523,11 +513,8 @@ iruserfopen (const char *file, uid_t okuser)
|
|
|
25845f |
* Returns 0 if ok, -1 if not ok.
|
|
|
25845f |
*/
|
|
|
25845f |
static int
|
|
|
25845f |
-ruserok2_sa (ra, ralen, superuser, ruser, luser, rhost)
|
|
|
25845f |
- struct sockaddr *ra;
|
|
|
25845f |
- size_t ralen;
|
|
|
25845f |
- int superuser;
|
|
|
25845f |
- const char *ruser, *luser, *rhost;
|
|
|
25845f |
+ruserok2_sa (struct sockaddr *ra, size_t ralen, int superuser,
|
|
|
25845f |
+ const char *ruser, const char *luser, const char *rhost)
|
|
|
25845f |
{
|
|
|
25845f |
FILE *hostf = NULL;
|
|
|
25845f |
int isbad = -1;
|
|
|
25845f |
@@ -584,22 +571,17 @@ ruserok2_sa (ra, ralen, superuser, ruser, luser, rhost)
|
|
|
25845f |
* ruserok_sa() is now discussed on ipng, so
|
|
|
25845f |
* currently disabled for external use
|
|
|
25845f |
*/
|
|
|
25845f |
-static int ruserok_sa(ra, ralen, superuser, ruser, luser)
|
|
|
25845f |
- struct sockaddr *ra;
|
|
|
25845f |
- size_t ralen;
|
|
|
25845f |
- int superuser;
|
|
|
25845f |
- const char *ruser, *luser;
|
|
|
25845f |
+static int
|
|
|
25845f |
+ruserok_sa (struct sockaddr *ra, size_t ralen, int superuser,
|
|
|
25845f |
+ const char *ruser, const char *luser)
|
|
|
25845f |
{
|
|
|
25845f |
return ruserok2_sa(ra, ralen, superuser, ruser, luser, "-");
|
|
|
25845f |
}
|
|
|
25845f |
|
|
|
25845f |
/* This is the exported version. */
|
|
|
25845f |
int
|
|
|
25845f |
-iruserok_af (raddr, superuser, ruser, luser, af)
|
|
|
25845f |
- const void *raddr;
|
|
|
25845f |
- int superuser;
|
|
|
25845f |
- const char *ruser, *luser;
|
|
|
25845f |
- sa_family_t af;
|
|
|
25845f |
+iruserok_af (const void *raddr, int superuser, const char *ruser,
|
|
|
25845f |
+ const char *luser, sa_family_t af)
|
|
|
25845f |
{
|
|
|
25845f |
struct sockaddr_storage ra;
|
|
|
25845f |
size_t ralen;
|
|
|
25845f |
@@ -626,10 +608,7 @@ iruserok_af (raddr, superuser, ruser, luser, af)
|
|
|
25845f |
libc_hidden_def (iruserok_af)
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-iruserok (raddr, superuser, ruser, luser)
|
|
|
25845f |
- u_int32_t raddr;
|
|
|
25845f |
- int superuser;
|
|
|
25845f |
- const char *ruser, *luser;
|
|
|
25845f |
+iruserok (u_int32_t raddr, int superuser, const char *ruser, const char *luser)
|
|
|
25845f |
{
|
|
|
25845f |
return iruserok_af (&raddr, superuser, ruser, luser, AF_INET);
|
|
|
25845f |
}
|
|
|
25845f |
@@ -646,10 +625,8 @@ iruserok (raddr, superuser, ruser, luser)
|
|
|
25845f |
* Returns 0 if ok, -1 if not ok.
|
|
|
25845f |
*/
|
|
|
25845f |
int
|
|
|
25845f |
-__ivaliduser(hostf, raddr, luser, ruser)
|
|
|
25845f |
- FILE *hostf;
|
|
|
25845f |
- u_int32_t raddr;
|
|
|
25845f |
- const char *luser, *ruser;
|
|
|
25845f |
+__ivaliduser (FILE *hostf, u_int32_t raddr, const char *luser,
|
|
|
25845f |
+ const char *ruser)
|
|
|
25845f |
{
|
|
|
25845f |
struct sockaddr_in ra;
|
|
|
25845f |
memset(&ra, '\0', sizeof(ra));
|
|
|
25845f |
@@ -760,11 +737,8 @@ __isempty (char *p)
|
|
|
25845f |
* Returns 0 if positive match, -1 if _not_ ok.
|
|
|
25845f |
*/
|
|
|
25845f |
static int
|
|
|
25845f |
-__validuser2_sa(hostf, ra, ralen, luser, ruser, rhost)
|
|
|
25845f |
- FILE *hostf;
|
|
|
25845f |
- struct sockaddr *ra;
|
|
|
25845f |
- size_t ralen;
|
|
|
25845f |
- const char *luser, *ruser, *rhost;
|
|
|
25845f |
+__validuser2_sa (FILE *hostf, struct sockaddr *ra, size_t ralen,
|
|
|
25845f |
+ const char *luser, const char *ruser, const char *rhost)
|
|
|
25845f |
{
|
|
|
25845f |
const char *user;
|
|
|
25845f |
char *p;
|
|
|
25845f |
diff --git a/inet/rexec.c b/inet/rexec.c
|
|
|
25845f |
index 75bb47082b3fa4f2..4e6d48d6b8060b07 100644
|
|
|
25845f |
--- a/inet/rexec.c
|
|
|
25845f |
+++ b/inet/rexec.c
|
|
|
25845f |
@@ -49,12 +49,8 @@ int rexecoptions;
|
|
|
25845f |
libc_freeres_ptr (static char *ahostbuf);
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-rexec_af(ahost, rport, name, pass, cmd, fd2p, af)
|
|
|
25845f |
- char **ahost;
|
|
|
25845f |
- int rport;
|
|
|
25845f |
- const char *name, *pass, *cmd;
|
|
|
25845f |
- int *fd2p;
|
|
|
25845f |
- sa_family_t af;
|
|
|
25845f |
+rexec_af (char **ahost, int rport, const char *name, const char *pass,
|
|
|
25845f |
+ const char *cmd, int *fd2p, sa_family_t af)
|
|
|
25845f |
{
|
|
|
25845f |
struct sockaddr_storage from;
|
|
|
25845f |
struct addrinfo hints, *res0;
|
|
|
25845f |
@@ -198,11 +194,8 @@ bad:
|
|
|
25845f |
libc_hidden_def (rexec_af)
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-rexec(ahost, rport, name, pass, cmd, fd2p)
|
|
|
25845f |
- char **ahost;
|
|
|
25845f |
- int rport;
|
|
|
25845f |
- const char *name, *pass, *cmd;
|
|
|
25845f |
- int *fd2p;
|
|
|
25845f |
+rexec (char **ahost, int rport, const char *name, const char *pass,
|
|
|
25845f |
+ const char *cmd, int *fd2p)
|
|
|
25845f |
{
|
|
|
25845f |
return rexec_af(ahost, rport, name, pass, cmd, fd2p, AF_INET);
|
|
|
25845f |
}
|
|
|
25845f |
diff --git a/inet/ruserpass.c b/inet/ruserpass.c
|
|
|
25845f |
index f64ca3f1c12d478e..ec0acb4d46a1bb43 100644
|
|
|
25845f |
--- a/inet/ruserpass.c
|
|
|
25845f |
+++ b/inet/ruserpass.c
|
|
|
25845f |
@@ -94,8 +94,7 @@ static const struct toktab {
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-ruserpass(host, aname, apass)
|
|
|
25845f |
- const char *host, **aname, **apass;
|
|
|
25845f |
+ruserpass (const char *host, const char **aname, const char **apass)
|
|
|
25845f |
{
|
|
|
25845f |
char *hdir, *buf, *tmp;
|
|
|
25845f |
char myname[1024], *mydomain;
|
|
|
25845f |
diff --git a/locale/programs/xmalloc.c b/locale/programs/xmalloc.c
|
|
|
25845f |
index bfc86ab77c29ef0b..4415664d45b4bddd 100644
|
|
|
25845f |
--- a/locale/programs/xmalloc.c
|
|
|
25845f |
+++ b/locale/programs/xmalloc.c
|
|
|
25845f |
@@ -81,8 +81,7 @@ xmalloc (size_t n)
|
|
|
25845f |
/* Allocate memory for N elements of S bytes, with error checking. */
|
|
|
25845f |
|
|
|
25845f |
VOID *
|
|
|
25845f |
-xcalloc (n, s)
|
|
|
25845f |
- size_t n, s;
|
|
|
25845f |
+xcalloc (size_t n, size_t s)
|
|
|
25845f |
{
|
|
|
25845f |
VOID *p;
|
|
|
25845f |
|
|
|
25845f |
diff --git a/manual/examples/timeval_subtract.c b/manual/examples/timeval_subtract.c
|
|
|
25845f |
index 232d4b199c9d8b1a..bff6f0204e4cdc34 100644
|
|
|
25845f |
--- a/manual/examples/timeval_subtract.c
|
|
|
25845f |
+++ b/manual/examples/timeval_subtract.c
|
|
|
25845f |
@@ -20,8 +20,7 @@
|
|
|
25845f |
Return 1 if the difference is negative, otherwise 0. */
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-timeval_subtract (result, x, y)
|
|
|
25845f |
- struct timeval *result, *x, *y;
|
|
|
25845f |
+timeval_subtract (struct timeval *result, struct timeval *x, struct timeval *y)
|
|
|
25845f |
{
|
|
|
25845f |
/* Perform the carry for the later subtraction by updating @var{y}. */
|
|
|
25845f |
if (x->tv_usec < y->tv_usec) {
|
|
|
25845f |
diff --git a/math/w_drem.c b/math/w_drem.c
|
|
|
25845f |
index 9e2b1e7472cc565b..843b67aa80335849 100644
|
|
|
25845f |
--- a/math/w_drem.c
|
|
|
25845f |
+++ b/math/w_drem.c
|
|
|
25845f |
@@ -8,8 +8,7 @@
|
|
|
25845f |
#include <math.h>
|
|
|
25845f |
|
|
|
25845f |
double
|
|
|
25845f |
-__drem(x, y)
|
|
|
25845f |
- double x, y;
|
|
|
25845f |
+__drem (double x, double y)
|
|
|
25845f |
{
|
|
|
25845f |
return __remainder(x, y);
|
|
|
25845f |
}
|
|
|
25845f |
diff --git a/math/w_dremf.c b/math/w_dremf.c
|
|
|
25845f |
index 4ec4baffd4c4fa3f..029e6bdf7f811e08 100644
|
|
|
25845f |
--- a/math/w_dremf.c
|
|
|
25845f |
+++ b/math/w_dremf.c
|
|
|
25845f |
@@ -9,8 +9,7 @@
|
|
|
25845f |
#include <math_private.h>
|
|
|
25845f |
|
|
|
25845f |
float
|
|
|
25845f |
-__dremf(x, y)
|
|
|
25845f |
- float x, y;
|
|
|
25845f |
+__dremf (float x, float y)
|
|
|
25845f |
{
|
|
|
25845f |
return __remainderf(x, y);
|
|
|
25845f |
}
|
|
|
25845f |
diff --git a/math/w_dreml.c b/math/w_dreml.c
|
|
|
25845f |
index aa73eedc496bca65..8d0139ac28061ccc 100644
|
|
|
25845f |
--- a/math/w_dreml.c
|
|
|
25845f |
+++ b/math/w_dreml.c
|
|
|
25845f |
@@ -10,8 +10,7 @@
|
|
|
25845f |
#include <math.h>
|
|
|
25845f |
|
|
|
25845f |
long double
|
|
|
25845f |
-__dreml(x, y)
|
|
|
25845f |
- long double x, y;
|
|
|
25845f |
+__dreml (long double x, long double y)
|
|
|
25845f |
{
|
|
|
25845f |
return __remainderl(x, y);
|
|
|
25845f |
}
|
|
|
25845f |
diff --git a/misc/daemon.c b/misc/daemon.c
|
|
|
25845f |
index 7597ce9996d5fde1..9d186b24bdc8ead0 100644
|
|
|
25845f |
--- a/misc/daemon.c
|
|
|
25845f |
+++ b/misc/daemon.c
|
|
|
25845f |
@@ -41,8 +41,7 @@ static char sccsid[] = "@(#)daemon.c 8.1 (Berkeley) 6/4/93";
|
|
|
25845f |
#include <not-cancel.h>
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-daemon(nochdir, noclose)
|
|
|
25845f |
- int nochdir, noclose;
|
|
|
25845f |
+daemon (int nochdir, int noclose)
|
|
|
25845f |
{
|
|
|
25845f |
int fd;
|
|
|
25845f |
|
|
|
25845f |
diff --git a/stdlib/div.c b/stdlib/div.c
|
|
|
25845f |
index a388080ed2852792..f4367c8770cff758 100644
|
|
|
25845f |
--- a/stdlib/div.c
|
|
|
25845f |
+++ b/stdlib/div.c
|
|
|
25845f |
@@ -51,8 +51,7 @@
|
|
|
25845f |
|
|
|
25845f |
/* Return the `div_t' representation of NUMER over DENOM. */
|
|
|
25845f |
div_t
|
|
|
25845f |
-div (numer, denom)
|
|
|
25845f |
- int numer, denom;
|
|
|
25845f |
+div (int numer, int denom)
|
|
|
25845f |
{
|
|
|
25845f |
div_t result;
|
|
|
25845f |
|
|
|
25845f |
diff --git a/string/memcmp.c b/string/memcmp.c
|
|
|
25845f |
index 2600c9d8038043a6..dbb286c7061fcbd6 100644
|
|
|
25845f |
--- a/string/memcmp.c
|
|
|
25845f |
+++ b/string/memcmp.c
|
|
|
25845f |
@@ -97,8 +97,7 @@ static int memcmp_bytes (op_t, op_t) __THROW;
|
|
|
25845f |
__inline
|
|
|
25845f |
# endif
|
|
|
25845f |
static int
|
|
|
25845f |
-memcmp_bytes (a, b)
|
|
|
25845f |
- op_t a, b;
|
|
|
25845f |
+memcmp_bytes (op_t a, op_t b)
|
|
|
25845f |
{
|
|
|
25845f |
long int srcp1 = (long int) &a;
|
|
|
25845f |
long int srcp2 = (long int) &b;
|
|
|
25845f |
diff --git a/sunrpc/pmap_rmt.c b/sunrpc/pmap_rmt.c
|
|
|
25845f |
index c0adc5b49ac4c54f..c8a8011ea5474b3b 100644
|
|
|
25845f |
--- a/sunrpc/pmap_rmt.c
|
|
|
25845f |
+++ b/sunrpc/pmap_rmt.c
|
|
|
25845f |
@@ -64,13 +64,9 @@ static const struct timeval timeout = {3, 0};
|
|
|
25845f |
* programs to do a lookup and call in one step.
|
|
|
25845f |
*/
|
|
|
25845f |
enum clnt_stat
|
|
|
25845f |
-pmap_rmtcall (addr, prog, vers, proc, xdrargs, argsp, xdrres, resp, tout, port_ptr)
|
|
|
25845f |
- struct sockaddr_in *addr;
|
|
|
25845f |
- u_long prog, vers, proc;
|
|
|
25845f |
- xdrproc_t xdrargs, xdrres;
|
|
|
25845f |
- caddr_t argsp, resp;
|
|
|
25845f |
- struct timeval tout;
|
|
|
25845f |
- u_long *port_ptr;
|
|
|
25845f |
+pmap_rmtcall (struct sockaddr_in *addr, u_long prog, u_long vers, u_long proc,
|
|
|
25845f |
+ xdrproc_t xdrargs, caddr_t argsp, xdrproc_t xdrres, caddr_t resp,
|
|
|
25845f |
+ struct timeval tout, u_long *port_ptr)
|
|
|
25845f |
{
|
|
|
25845f |
int socket = -1;
|
|
|
25845f |
CLIENT *client;
|
|
|
25845f |
diff --git a/sunrpc/svc_udp.c b/sunrpc/svc_udp.c
|
|
|
25845f |
index d1c8788d20b6805c..c1139b035317e886 100644
|
|
|
25845f |
--- a/sunrpc/svc_udp.c
|
|
|
25845f |
+++ b/sunrpc/svc_udp.c
|
|
|
25845f |
@@ -118,9 +118,7 @@ struct svcudp_data
|
|
|
25845f |
* The routines returns NULL if a problem occurred.
|
|
|
25845f |
*/
|
|
|
25845f |
SVCXPRT *
|
|
|
25845f |
-svcudp_bufcreate (sock, sendsz, recvsz)
|
|
|
25845f |
- int sock;
|
|
|
25845f |
- u_int sendsz, recvsz;
|
|
|
25845f |
+svcudp_bufcreate (int sock, u_int sendsz, u_int recvsz)
|
|
|
25845f |
{
|
|
|
25845f |
bool_t madesock = FALSE;
|
|
|
25845f |
SVCXPRT *xprt;
|