summaryrefslogtreecommitdiff
path: root/ui/gtk/filter_autocomplete.c
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2012-04-09 18:44:10 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2012-04-09 18:44:10 +0000
commit23494db817c6a5e0262a5312d7b97e1e601091f7 (patch)
tree37ce8ddd63232d2fb8256477fd509a5846d3b678 /ui/gtk/filter_autocomplete.c
parent1e6301fa8b049cf9e9086c034b6550449b2d6402 (diff)
downloadwireshark-23494db817c6a5e0262a5312d7b97e1e601091f7.tar.gz
Add missing const attribute to some char *
Fix some "assignment discards qualifiers from pointer target type", etc svn path=/trunk/; revision=41996
Diffstat (limited to 'ui/gtk/filter_autocomplete.c')
-rw-r--r--ui/gtk/filter_autocomplete.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/ui/gtk/filter_autocomplete.c b/ui/gtk/filter_autocomplete.c
index 6a67b51eb8..ad67bb51ea 100644
--- a/ui/gtk/filter_autocomplete.c
+++ b/ui/gtk/filter_autocomplete.c
@@ -78,10 +78,11 @@ is_protocol_name_being_typed(GtkWidget *filter_te, int str_len)
int op_len, cursor_pos;
gchar *start;
gchar *pos;
- static gchar *logic_ops[] = { "!", "not",
- "||", "or",
- "&&", "and",
- "^^", "xor" };
+ static const gchar *logic_ops[] =
+ { "!", "not",
+ "||", "or",
+ "&&", "and",
+ "^^", "xor" };
/* If the cursor is located at the beginning of the filter editable text,
* then it's _probably_ a protocol name.