1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-10 21:38:50 +01:00

* 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> 2005-12-06 David Shaw <dshaw@jabberwocky.com>
* Makefile.am: Some cleanup so we don't build files that are * idea-stub.c (load_module): Not legal to return a void * as a
completely ifdeffed out. This causes a warning on Sun's cc. Do function pointer.
sha512.c as well for consistency.
* 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> 2005-08-11 Werner Koch <wk@g10code.com>

View File

@ -138,7 +138,7 @@ load_module (const char *name)
if ((err=dlerror())) if ((err=dlerror()))
goto failure; goto failure;
return sym; return (INFO_FNC)sym;
failure: failure:
log_info ("invalid module `%s': %s\n", name?name:"???", err?err:"???"); log_info ("invalid module `%s': %s\n", name?name:"???", err?err:"???");

View File

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

View File

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

View File

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

View File

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