summaryrefslogtreecommitdiff
path: root/tfshark.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2015-12-12 02:34:47 +0000
committerGuy Harris <guy@alum.mit.edu>2015-12-14 23:52:28 +0000
commitfbf2e3cf8fc07ef9f8b7cc4627fec82885560f98 (patch)
tree1eaf16ee020f4d5cd043497b5784eb4a8a0ab127 /tfshark.c
parentd835b271679c5e5eae7146b96ae1a65cbd5c16b4 (diff)
downloadwireshark-fbf2e3cf8fc07ef9f8b7cc4627fec82885560f98.tar.gz
Make init_progfile_dir() take a function pointer [-Wpedantic]
Change-Id: I45f8ea5ee6ccc5a484c60ad6e686aaf30f6b0c98 Reviewed-on: https://code.wireshark.org/review/12557 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tfshark.c')
-rw-r--r--tfshark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tfshark.c b/tfshark.c
index 015184dec9..fea110c1e5 100644
--- a/tfshark.c
+++ b/tfshark.c
@@ -835,7 +835,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, "tfshark: Can't get pathname of tfshark program: %s.\n",
init_progfile_dir_error);