diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-02-19 16:23:39 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-02-20 00:24:08 +0000 |
commit | 9423a13b2db427d15f6b3d11b73624fffc02608f (patch) | |
tree | a241140b23d189d8cb5466b72522dd6432a4ba96 /echld/dispatcher.c | |
parent | ec6ec4994152f7d06d09544d61900f3ce1d55ced (diff) |
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 <guy@alum.mit.edu>
Diffstat (limited to 'echld/dispatcher.c')
-rw-r--r-- | echld/dispatcher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/echld/dispatcher.c b/echld/dispatcher.c index b18261b701..21f0957312 100644 --- a/echld/dispatcher.c +++ b/echld/dispatcher.c @@ -474,7 +474,7 @@ static void preinit_epan(char* argv0, int (*main)(int, char **)) { int dp_open_errno, dp_read_errno; char* error; - error = init_progfile_dir(argv0, main); + error = init_progfile_dir(argv0, (void *)main); comp_info_str = get_compiled_version_info(NULL, epan_get_compiled_version_info); |