summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-10-20 11:52:27 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-10-20 11:52:27 +0000
commit41075ae3e7f406e67d51da8cc5e89e397710d54b (patch)
treed926b4a29e019eba76fa3b4f269214f19db66731 /math
parenta72ddc1424d5bfcab14d90f1149cbb9b492f0120 (diff)
downloadglibc-41075ae3e7f406e67d51da8cc5e89e397710d54b.tar.gz
Convert 29 more function definitions to prototype style (multiple parameters in one K&R parameter declaration).
This automatically-generated patch converts 29 function definitions in glibc (including one in an example in the manual) from old-style K&R to prototype-style. Following my other recent such patches, this one deals with the case of function definitions where one K&R parameter declaration declares multiple parameters, as in: void foo (a, b) int a, *b; { } Tested for x86_64 and x86 (testsuite, and that installed stripped shared libraries are unchanged by the patch). * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function definition. (_ufc_doit_r): Likewise. * crypt/crypt_util.c (_ufc_copymem): Likewise. (_ufc_output_conversion_r): Likewise. * inet/inet_mkadr.c (__inet_makeaddr): Likewise. * inet/rcmd.c (rcmd_af): Likewise. (rcmd): Likewise. (ruserok_af): Likewise. (ruserok): Likewise. (ruserok2_sa): Likewise. (ruserok_sa): Likewise. (iruserok_af): Likewise. (iruserok): Likewise. (__ivaliduser): Likewise. (__validuser2_sa): Likewise. * inet/rexec.c (rexec_af): Likewise. (rexec): Likewise. * inet/ruserpass.c (ruserpass): Likewise. * locale/programs/xmalloc.c (xcalloc): Likewise. * manual/examples/timeval_subtract.c (timeval_subtract): Likewise. * math/w_drem.c (__drem): Likewise. * math/w_dremf.c (__dremf): Likewise. * math/w_dreml.c (__dreml): Likewise. * misc/daemon.c (daemon): Likewise. * resolv/res_debug.c (p_fqnname): Likewise. * stdlib/div.c (div): Likewise. * string/memcmp.c (memcmp_bytes): Likewise. * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise. * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
Diffstat (limited to 'math')
-rw-r--r--math/w_drem.c3
-rw-r--r--math/w_dremf.c3
-rw-r--r--math/w_dreml.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/math/w_drem.c b/math/w_drem.c
index 9e2b1e7472..843b67aa80 100644
--- a/math/w_drem.c
+++ b/math/w_drem.c
@@ -8,8 +8,7 @@
#include <math.h>
double
-__drem(x, y)
- double x, y;
+__drem (double x, double y)
{
return __remainder(x, y);
}
diff --git a/math/w_dremf.c b/math/w_dremf.c
index 0e25ef8ccf..c5e7c63af5 100644
--- a/math/w_dremf.c
+++ b/math/w_dremf.c
@@ -9,8 +9,7 @@
#include <math_private.h>
float
-__dremf(x, y)
- float x, y;
+__dremf (float x, float y)
{
return __remainderf(x, y);
}
diff --git a/math/w_dreml.c b/math/w_dreml.c
index aa73eedc49..8d0139ac28 100644
--- a/math/w_dreml.c
+++ b/math/w_dreml.c
@@ -10,8 +10,7 @@
#include <math.h>
long double
-__dreml(x, y)
- long double x, y;
+__dreml (long double x, long double y)
{
return __remainderl(x, y);
}