aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-k12.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-24 19:01:28 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-24 19:01:28 +0000
commit220928b8c0d339ab78fc521ed604b1bc16b1ac54 (patch)
treeca1693ebf1407ac544cb272dbfe175ff1ff44a39 /epan/dissectors/packet-k12.c
parent42a1f83bcb20989d255b29b5c2620a16a1366ef0 (diff)
Constify to remove a bunch of warnings. Add some casts to squelch
(presumably-)harmless-but-otherwise-unremovable const-to-nonconst warnings. In the TACACS dissector, clean up the variables used in option parsing to avoid some const-to-nonconst warnings. Clean up some white space. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15043 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-k12.c')
-rw-r--r--epan/dissectors/packet-k12.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-k12.c b/epan/dissectors/packet-k12.c
index 2a1f230d3c..fc561a5414 100644
--- a/epan/dissectors/packet-k12.c
+++ b/epan/dissectors/packet-k12.c
@@ -55,7 +55,7 @@ static dissector_handle_t data_handle;
static module_t *k12_module;
-static char* k12_config_filename = "";
+static const char* k12_config_filename = "";
static GHashTable* k12_cfg = NULL;
@@ -119,7 +119,7 @@ static gboolean free_just_key (gpointer k, gpointer v _U_, gpointer p _U_) {
}
-static GHashTable* k12_load_config(gchar* filename) {
+static GHashTable* k12_load_config(const gchar* filename) {
FILE* fp;
gchar buffer[0x10000];
size_t len;
@@ -193,8 +193,8 @@ static void k12_load_prefs(void) {
}
if (*k12_config_filename != '\0') {
- k12_cfg = k12_load_config(k12_config_filename);
- return;
+ k12_cfg = k12_load_config(k12_config_filename);
+ return;
}
}