From: Enrico Scholz Date: Wed, 1 Oct 2003 00:55:44 +0000 (+0000) Subject: explicitly cast result of dlsym() to prevent compiler warnings X-Git-Tag: VERSION_0_10~1322 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ea081fe6ad6968fdab74f248d50c18907b79955;p=util-vserver.git explicitly cast result of dlsym() to prevent compiler warnings git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@36 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/src/rpm-fake.c b/util-vserver/src/rpm-fake.c index 6ef4f66..f063616 100644 --- a/util-vserver/src/rpm-fake.c +++ b/util-vserver/src/rpm-fake.c @@ -41,7 +41,7 @@ #define LIBNAME "rpm-fake.so" #define PLATFORM_FILE "/etc/rpm/platform" -#define INIT(FILE,FUNC) FUNC##_func = dlsym(FILE, #FUNC) +#define INIT(FILE,FUNC) FUNC##_func = ((__typeof__(FUNC) *) (dlsym(FILE, #FUNC))) #define DECLARE(FUNC) static __typeof__(FUNC) * FUNC##_func = 0 static bool is_initialized = false;