OSSP CVS Repository

ossp - Difference in ossp-pkg/sa/sa.c versions 1.77 and 1.78
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/sa/sa.c 1.77 -> 1.78

--- sa.c 2004/03/26 16:05:59     1.77
+++ sa.c 2004/03/26 16:57:14     1.78
@@ -116,49 +116,49 @@
 /* system call structure declaration macros */
 #define SA_SC_DECLARE_0(rc_t, fn) \
     struct { \
-        union { void (*any)(); \
+        union { void (*any)(void); \
                 rc_t (*std)(void); \
                 rc_t (*ctx)(void *); } fptr; \
         void *fctx; \
     } sc_##fn;
 #define SA_SC_DECLARE_1(rc_t, fn, a1_t) \
     struct { \
-        union { void (*any)(); \
+        union { void (*any)(void); \
                 rc_t (*std)(a1_t); \
                 rc_t (*ctx)(void *, a1_t); } fptr; \
         void *fctx; \
     } sc_##fn;
 #define SA_SC_DECLARE_2(rc_t, fn, a1_t, a2_t) \
     struct { \
-        union { void (*any)(); \
+        union { void (*any)(void); \
                 rc_t (*std)(a1_t, a2_t); \
                 rc_t (*ctx)(void *, a1_t, a2_t); } fptr; \
         void *fctx; \
     } sc_##fn;
 #define SA_SC_DECLARE_3(rc_t, fn, a1_t, a2_t, a3_t) \
     struct { \
-        union { void (*any)(); \
+        union { void (*any)(void); \
                 rc_t (*std)(a1_t, a2_t, a3_t); \
                 rc_t (*ctx)(void *, a1_t, a2_t, a3_t); } fptr; \
         void *fctx; \
     } sc_##fn;
 #define SA_SC_DECLARE_4(rc_t, fn, a1_t, a2_t, a3_t, a4_t) \
     struct { \
-        union { void (*any)(); \
+        union { void (*any)(void); \
                 rc_t (*std)(a1_t, a2_t, a3_t, a4_t); \
                 rc_t (*ctx)(void *, a1_t, a2_t, a3_t, a4_t); } fptr; \
         void *fctx; \
     } sc_##fn;
 #define SA_SC_DECLARE_5(rc_t, fn, a1_t, a2_t, a3_t, a4_t, a5_t) \
     struct { \
-        union { void (*any)(); \
+        union { void (*any)(void); \
                 rc_t (*std)(a1_t, a2_t, a3_t, a4_t, a5_t); \
                 rc_t (*ctx)(void *, a1_t, a2_t, a3_t, a4_t, a5_t); } fptr; \
         void *fctx; \
     } sc_##fn;
 #define SA_SC_DECLARE_6(rc_t, fn, a1_t, a2_t, a3_t, a4_t, a5_t, a6_t) \
     struct { \
-        union { void (*any)(); \
+        union { void (*any)(void); \
                 rc_t (*std)(a1_t, a2_t, a3_t, a4_t, a5_t, a6_t); \
                 rc_t (*ctx)(void *, a1_t, a2_t, a3_t, a4_t, a5_t, a6_t); } fptr; \
         void *fctx; \
@@ -167,7 +167,7 @@
 /* system call structure assignment macro */
 #define SA_SC_ASSIGN(sa, fn, ptr, ctx) \
     do { \
-        (sa)->scSysCall.sc_##fn.fptr.any = (void (*)())(ptr); \
+        (sa)->scSysCall.sc_##fn.fptr.any = (void (*)(void))(ptr); \
         (sa)->scSysCall.sc_##fn.fctx = (ctx); \
     } while (0)
 
@@ -182,7 +182,7 @@
 #define SA_SC_CALL_0(sa, fn) \
     (   (sa)->scSysCall.sc_##fn.fctx != NULL \
      ? ((sa)->scSysCall.sc_##fn.fptr.ctx)((sa)->scSysCall.sc_##fn.fctx) \
-     : ((sa)->scSysCall.sc_##fn.fptr.std)() )
+     : ((sa)->scSysCall.sc_##fn.fptr.std)(void) )
 #define SA_SC_CALL_1(sa, fn, a1) \
     (   (sa)->scSysCall.sc_##fn.fctx != NULL \
      ? ((sa)->scSysCall.sc_##fn.fptr.ctx)((sa)->scSysCall.sc_##fn.fctx, a1) \
@@ -1393,7 +1393,7 @@
 }
 
 /* override system call */
-sa_rc_t sa_syscall(sa_t *sa, sa_syscall_t id, void (*fptr)(), void *fctx)
+sa_rc_t sa_syscall(sa_t *sa, sa_syscall_t id, void (*fptr)(void), void *fctx)
 {
     sa_rc_t rv;
 

CVSTrac 2.0.1