Avoid obsolescent C declarator with empty parentheses.
authorLudovic Courtès <ludo@gnu.org>
Thu, 8 Apr 2010 22:01:38 +0000 (00:01 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 8 Apr 2010 22:32:14 +0000 (00:32 +0200)
* libguile/foreign.c (scm_i_foreign_call): Don't declare FUNC with a
  declarator with empty parentheses (bug #23681).

libguile/foreign.c

index 9f307ef..3281744 100644 (file)
@@ -966,7 +966,7 @@ scm_i_foreign_call (SCM foreign, const SCM *argv)
   /* FOREIGN is the pair that cif_to_procedure set as the 0th element of the
      objtable. */
   ffi_cif *cif;
-  void (*func)();
+  void (*func) (void);
   scm_t_uint8 *data;
   void *rvalue;
   void **args;
@@ -978,7 +978,7 @@ scm_i_foreign_call (SCM foreign, const SCM *argv)
   func = SCM_FOREIGN_POINTER (SCM_CDR (foreign), void);
 
   /* Argument pointers.  */
-  args = alloca (sizeof(void*) * cif->nargs);
+  args = alloca (sizeof (void *) * cif->nargs);
 
   /* Compute the amount of memory needed to store all the argument values.
      Note: as of libffi 3.0.9 `cif->bytes' is undocumented and is zero, so it