summaryrefslogtreecommitdiff
path: root/tshark.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 /tshark.c
parent6f059e8cb7877efe7c87bbd3c6ee3b6737db950f (diff)
downloadwireshark-c73ab7dff78656b8cdc261f3527ed5839a2543ba.tar.gz
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 'tshark.c')
-rw-r--r--tshark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index bf30086cce..5f3e060a95 100644
--- a/tshark.c
+++ b/tshark.c
@@ -773,7 +773,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, "tshark: Can't get pathname of tshark program: %s.\n",
init_progfile_dir_error);