oops, void functions shouldn't try and return a value. Strangely, gcc
authorGeoff Thorpe <geoff@openssl.org>
Tue, 9 Jan 2001 16:59:56 +0000 (16:59 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Tue, 9 Jan 2001 16:59:56 +0000 (16:59 +0000)
didn't even give a warning for this yet HPUX cc considered it an error.
Reported by Lutz(@openssl.org).

crypto/lhash/lhash.h

index a6048a4b7d2a73bb2c18b46368e56f57d8947e5a..ddd8e12d05320552a01a9d9297abceefb2842cfe 100644 (file)
@@ -121,7 +121,7 @@ typedef void (*LHASH_DOALL_ARG_FN_TYPE)(const void *, const void *);
 #define IMPLEMENT_LHASH_DOALL_FN(f_name,o_type) \
        void f_name##_LHASH_DOALL(const void *arg) { \
                o_type a = (o_type)arg; \
-               return f_name(a); }
+               f_name(a); }
 #define LHASH_DOALL_FN(f_name) f_name##_LHASH_DOALL
 
 /* Fourth: "doall_arg" functions */
@@ -131,7 +131,7 @@ typedef void (*LHASH_DOALL_ARG_FN_TYPE)(const void *, const void *);
        void f_name##_LHASH_DOALL_ARG(const void *arg1, const void *arg2) { \
                o_type a = (o_type)arg1; \
                a_type b = (a_type)arg2; \
-               return f_name(a,b); }
+               f_name(a,b); }
 #define LHASH_DOALL_ARG_FN(f_name) f_name##_LHASH_DOALL_ARG
 
 typedef struct lhash_st