aboutsummaryrefslogtreecommitdiffstats
path: root/dftest.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-02-19 16:23:39 -0800
committerGuy Harris <guy@alum.mit.edu>2015-02-20 00:24:08 +0000
commit9423a13b2db427d15f6b3d11b73624fffc02608f (patch)
treea241140b23d189d8cb5466b72522dd6432a4ba96 /dftest.c
parentec6ec4994152f7d06d09544d61900f3ce1d55ced (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 'dftest.c')
-rw-r--r--dftest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dftest.c b/dftest.c
index 9945d3632a..c721afcdd0 100644
--- a/dftest.c
+++ b/dftest.c
@@ -70,7 +70,7 @@ main(int argc, char **argv)
/*
* Attempt to get the pathname of the executable file.
*/
- init_progfile_dir_error = init_progfile_dir(argv[0], main);
+ init_progfile_dir_error = init_progfile_dir(argv[0], (void *)main);
if (init_progfile_dir_error != NULL) {
fprintf(stderr, "dftest: Can't get pathname of dftest program: %s.\n",
init_progfile_dir_error);