aboutsummaryrefslogtreecommitdiffstats
path: root/dftest.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2009-03-22 06:53:17 +0000
committerGuy Harris <guy@alum.mit.edu>2009-03-22 06:53:17 +0000
commitc73ab7dff78656b8cdc261f3527ed5839a2543ba (patch)
tree60941273e6ca21e71eb87fc65dd9bade75474113 /dftest.c
parent6f059e8cb7877efe7c87bbd3c6ee3b6737db950f (diff)
Change the signature of init_progfile_dir() so the casting of the
function pointer (to main) to an argument to dladdr() is done in init_progfile_dir() rather than its callers. svn path=/trunk/; revision=27814
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 eba59b0ea4..d8492e0915 100644
--- a/dftest.c
+++ b/dftest.c
@@ -75,7 +75,7 @@ main(int argc, char **argv)
/*
* Attempt to get the pathname of the executable file.
*/
- init_progfile_dir_error = init_progfile_dir(argv[0], (void *)main);
+ init_progfile_dir_error = init_progfile_dir(argv[0], main);
if (init_progfile_dir_error != NULL) {
fprintf(stderr, "dftest: Can't get pathname of dftest program: %s.\n",
init_progfile_dir_error);