From 9423a13b2db427d15f6b3d11b73624fffc02608f Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 19 Feb 2015 16:23:39 -0800 Subject: Just have init_progfile_dir() take a void pointer. dladdr() takes a void * as a code pointer; have init_progfile_dir() do so, and do the casting in the calls. We don't care about the signature of the function whose address we're passing, we just want to pass a pointer to *something* in the main program. Change-Id: I9372620a97b0eb53c2bb3c0c41a238b4408f3709 Reviewed-on: https://code.wireshark.org/review/7270 Reviewed-by: Guy Harris --- capinfos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'capinfos.c') diff --git a/capinfos.c b/capinfos.c index 083a010a09..555dfff312 100644 --- a/capinfos.c +++ b/capinfos.c @@ -1164,7 +1164,7 @@ main(int argc, char *argv[]) init_open_routines(); #ifdef HAVE_PLUGINS - if ((init_progfile_dir_error = init_progfile_dir(argv[0], main))) { + if ((init_progfile_dir_error = init_progfile_dir(argv[0], (void *)main))) { g_warning("capinfos: init_progfile_dir(): %s", init_progfile_dir_error); g_free(init_progfile_dir_error); } else { -- cgit v1.2.3