From c73ab7dff78656b8cdc261f3527ed5839a2543ba Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 22 Mar 2009 06:53:17 +0000 Subject: 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 --- dftest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dftest.c') 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); -- cgit v1.2.1