From 8a0cf1d2a342abbcb26dd2cc3397a848123d63fc Mon Sep 17 00:00:00 2001 From: David Shaw Date: Tue, 6 Dec 2005 20:27:43 +0000 Subject: [PATCH] * idea-stub.c (load_module): Not legal to return a void * as a function pointer. --- cipher/ChangeLog | 10 +++++++--- cipher/idea-stub.c | 2 +- cipher/rndegd.c | 5 ----- cipher/rndlinux.c | 5 ----- cipher/rndunix.c | 5 ----- cipher/rndw32.c | 5 ----- 6 files changed, 8 insertions(+), 24 deletions(-) diff --git a/cipher/ChangeLog b/cipher/ChangeLog index 1efddea8f..23a0c1601 100644 --- a/cipher/ChangeLog +++ b/cipher/ChangeLog @@ -1,8 +1,12 @@ 2005-12-06 David Shaw - * Makefile.am: Some cleanup so we don't build files that are - completely ifdeffed out. This causes a warning on Sun's cc. Do - sha512.c as well for consistency. + * idea-stub.c (load_module): Not legal to return a void * as a + function pointer. + + * Makefile.am, rndegd.c, rndlinux.c, rndunix.c, rndw32.c: Some + cleanup so we don't build files that are completely ifdeffed out. + This causes a warning on Sun's cc. Do sha512.c as well for + consistency. 2005-08-11 Werner Koch diff --git a/cipher/idea-stub.c b/cipher/idea-stub.c index fc19baeed..55b5cb506 100644 --- a/cipher/idea-stub.c +++ b/cipher/idea-stub.c @@ -138,7 +138,7 @@ load_module (const char *name) if ((err=dlerror())) goto failure; - return sym; + return (INFO_FNC)sym; failure: log_info ("invalid module `%s': %s\n", name?name:"???", err?err:"???"); diff --git a/cipher/rndegd.c b/cipher/rndegd.c index fb997d283..e6646a243 100644 --- a/cipher/rndegd.c +++ b/cipher/rndegd.c @@ -20,9 +20,6 @@ */ #include - -#ifdef USE_RNDEGD - #include #include #include @@ -226,5 +223,3 @@ rndegd_gather_random( void (*add)(const void*, size_t, int), int requester, return 0; /* success */ } - -#endif /*USE_RNDEGD*/ diff --git a/cipher/rndlinux.c b/cipher/rndlinux.c index ca42eea8a..c6f646c63 100644 --- a/cipher/rndlinux.c +++ b/cipher/rndlinux.c @@ -21,9 +21,6 @@ #include - -#ifdef USE_RNDLINUX - #include #include #include @@ -161,5 +158,3 @@ _("\n" return 0; /* success */ } - -#endif /*USE_RNDLINUX*/ diff --git a/cipher/rndunix.c b/cipher/rndunix.c index c3b5cf8e2..3cc71cf0b 100644 --- a/cipher/rndunix.c +++ b/cipher/rndunix.c @@ -48,9 +48,6 @@ /* General includes */ #include - -#ifdef USE_RNDUNIX - #include #include #include @@ -870,5 +867,3 @@ rndunix_gather_random( void (*add)(const void*, size_t, int), int requester, return 0; } - -#endif /*USE_RNDUNIX*/ diff --git a/cipher/rndw32.c b/cipher/rndw32.c index dc3c775c2..f81f1c191 100644 --- a/cipher/rndw32.c +++ b/cipher/rndw32.c @@ -61,9 +61,6 @@ */ #include - -#ifdef USE_RNDW32 - #include #include #include @@ -700,5 +697,3 @@ rndw32_gather_random_fast( void (*add)(const void*, size_t, int), int requester return 0; } - -#endif /*USE_RNDW32*/