diff options
author | Bill Meier <wmeier@newsguy.com> | 2013-11-21 17:41:17 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2013-11-21 17:41:17 +0000 |
commit | 0f5f63bbf099c91cfbeb0f6e001098d7eb4cc75d (patch) | |
tree | 4133122775dbb2299e7fec1f4f263655c6224f8e | |
parent | 22f8920d566fdd825ad1a7da9b3a225a1258ad21 (diff) |
Constify a character array;
Fix a typo;
Add editor modelines.
svn path=/trunk/; revision=53480
-rw-r--r-- | epan/dissectors/packet-acn.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/epan/dissectors/packet-acn.c b/epan/dissectors/packet-acn.c index 0271d0631a..ca3fc8b7c3 100644 --- a/epan/dissectors/packet-acn.c +++ b/epan/dissectors/packet-acn.c @@ -455,7 +455,7 @@ static const enum_val_t dmx_display_line_format[] = { static gboolean is_acn(tvbuff_t *tvb) { - static char acn_packet_id[] = "ASC-E1.17\0\0\0"; /* must be 12 bytes */ + static const char acn_packet_id[] = "ASC-E1.17\0\0\0"; /* must be 12 bytes */ if (tvb_length(tvb) < (4+sizeof(acn_packet_id))) return FALSE; @@ -1849,7 +1849,7 @@ ltos(guint8 level, gchar *string, guint8 base, gchar leading_char, guint8 min_ch } i = 0; - /* do our convert, comes out backwords! */ + /* do our convert, comes out backwards! */ do { string[i++] = "0123456789ABCDEF"[level % base]; } while ((level /= base) > 0); @@ -3250,3 +3250,17 @@ proto_reg_handoff_acn(void) /* dissector_add_handle("udp.port", acn_handle); */ heur_dissector_add("udp", dissect_acn_heur, proto_acn); } + + +/* + * Editor modelines + * + * Local Variables: + * c-basic-offset: 2 + * tab-width: 8 + * indent-tabs-mode: nil + * End: + * + * ex: set shiftwidth=2 tabstop=8 expandtab: + * :indentSize=2:tabSize=8:noTabs=true: + */ |