* idea-stub.c (load_module): Not legal to return a void * as a function

pointer.
This commit is contained in:
David Shaw 2005-12-06 20:27:43 +00:00
parent d6e918e40f
commit 8a0cf1d2a3
6 changed files with 8 additions and 24 deletions

View File

@ -1,8 +1,12 @@
2005-12-06 David Shaw <dshaw@jabberwocky.com>
* 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 <wk@g10code.com>

View File

@ -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:"???");

View File

@ -20,9 +20,6 @@
*/
#include <config.h>
#ifdef USE_RNDEGD
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
@ -226,5 +223,3 @@ rndegd_gather_random( void (*add)(const void*, size_t, int), int requester,
return 0; /* success */
}
#endif /*USE_RNDEGD*/

View File

@ -21,9 +21,6 @@
#include <config.h>
#ifdef USE_RNDLINUX
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
@ -161,5 +158,3 @@ _("\n"
return 0; /* success */
}
#endif /*USE_RNDLINUX*/

View File

@ -48,9 +48,6 @@
/* General includes */
#include <config.h>
#ifdef USE_RNDUNIX
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@ -870,5 +867,3 @@ rndunix_gather_random( void (*add)(const void*, size_t, int), int requester,
return 0;
}
#endif /*USE_RNDUNIX*/

View File

@ -61,9 +61,6 @@
*/
#include <config.h>
#ifdef USE_RNDW32
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
@ -700,5 +697,3 @@ rndw32_gather_random_fast( void (*add)(const void*, size_t, int), int requester
return 0;
}
#endif /*USE_RNDW32*/