aboutsummaryrefslogtreecommitdiffstats
path: root/epan/plugins.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-12-31 00:32:00 +0000
committerGuy Harris <guy@alum.mit.edu>2004-12-31 00:32:00 +0000
commit4c0f806dc98d731bd05f85f9e9e90de35e9f32f4 (patch)
tree3ac901453a8bbf55f356570ce1f504625f33624b /epan/plugins.h
parent1d182e4fcc37b97ebc379c7255f24b4dd49412ed (diff)
As "get_persconffile_path()" doesn't return a "const char *", neither
does "get_plugins_pers_dir()" - and "get_plugins_global_dir()" doesn't return one either. Both of them return mallocated data, and making them return a "const char *" just causes compiler whining when you try to free them. svn path=/trunk/; revision=12883
Diffstat (limited to 'epan/plugins.h')
-rw-r--r--epan/plugins.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/plugins.h b/epan/plugins.h
index e314f45f0c..f844703d9f 100644
--- a/epan/plugins.h
+++ b/epan/plugins.h
@@ -4,10 +4,9 @@
* $Id$
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1999 Gerald Combs
*
- *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
@@ -46,10 +45,10 @@ extern void register_all_plugin_handoffs(void);
/* get the global plugin dir */
/* Return value is g_malloced so the caller should g_free() it. */
-extern const char *get_plugins_global_dir(const char *plugin_dir);
+extern char *get_plugins_global_dir(const char *plugin_dir);
/* get the personal plugin dir */
/* Return value is g_malloced so the caller should g_free() it. */
-extern const char *get_plugins_pers_dir(void);
+extern char *get_plugins_pers_dir(void);
#endif /* __PLUGINS_H__ */