diff options
author | Guy Harris <guy@alum.mit.edu> | 2009-03-22 06:53:17 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2009-03-22 06:53:17 +0000 |
commit | c73ab7dff78656b8cdc261f3527ed5839a2543ba (patch) | |
tree | 60941273e6ca21e71eb87fc65dd9bade75474113 /dftest.c | |
parent | 6f059e8cb7877efe7c87bbd3c6ee3b6737db950f (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |