Fix the prototypes of some functions without context
authorBrian Fraser <fraserbn@gmail.com>
Tue, 4 Feb 2014 03:47:12 +0000 (00:47 -0300)
committerBrian Fraser <fraserbn@gmail.com>
Wed, 5 Feb 2014 07:32:50 +0000 (04:32 -0300)
Their prototypes are (void), but the implementation was ()

perl.c
util.c

diff --git a/perl.c b/perl.c
index e9c4606..72d0485 100644 (file)
--- a/perl.c
+++ b/perl.c
@@ -137,7 +137,7 @@ Perl_sys_init3(int* argc, char*** argv, char*** env)
 }
 
 void
-Perl_sys_term()
+Perl_sys_term(void)
 {
     dVAR;
     if (!PL_veto_cleanup) {
diff --git a/util.c b/util.c
index 47280a8..9d4b246 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1697,7 +1697,7 @@ paths reduces CPU cache pressure.
 */
 
 void
-Perl_croak_no_modify()
+Perl_croak_no_modify(void)
 {
     Perl_croak_nocontext( "%s", PL_no_modify);
 }
@@ -1706,7 +1706,7 @@ Perl_croak_no_modify()
    This is typically called when malloc returns NULL.
 */
 void
-Perl_croak_no_mem()
+Perl_croak_no_mem(void)
 {
     dTHX;
     int rc;