diff options
author | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-01-26 17:45:58 +0000 |
---|---|---|
committer | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-01-26 17:45:58 +0000 |
commit | 10c7cbde481ba68b80ea97f77a262c901bb296f8 (patch) | |
tree | 4d1b13efc704d8431240ea1f5a9c84e94f1dd6fc /asn1 | |
parent | e2f6b3f5308a1ff7e5590d21b148bfc306d6901c (diff) |
Fix a gcc -Wshadow warning
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31684 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'asn1')
-rw-r--r-- | asn1/camel/camel.cnf | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/asn1/camel/camel.cnf b/asn1/camel/camel.cnf index 43b41ecbe5..c31ec8d417 100644 --- a/asn1/camel/camel.cnf +++ b/asn1/camel/camel.cnf @@ -321,7 +321,7 @@ proto_tree *subtree; guint8 digit_pair; guint8 i = 0, curr_offset; - char time[CAMEL_DATE_AND_TIME_LEN]; + char camel_time[CAMEL_DATE_AND_TIME_LEN]; char c[CAMEL_DATE_AND_TIME_LEN]; /*temporary container*/ /* 2 digits per octet, 7 octets total + 5 delimiters */ @@ -356,38 +356,38 @@ proto_tree *subtree; /* XXX - Should we use sprintf here instead of assembling the string by * hand? */ - time[0] = c[8]; - time[1] = c[9]; - time[2] = ':'; - time[3] = c[10]; - time[4] = c[11]; - time[5] = ':'; - time[6] = c[12]; - time[7] = c[13]; - time[8] = ';'; + camel_time[0] = c[8]; + camel_time[1] = c[9]; + camel_time[2] = ':'; + camel_time[3] = c[10]; + camel_time[4] = c[11]; + camel_time[5] = ':'; + camel_time[6] = c[12]; + camel_time[7] = c[13]; + camel_time[8] = ';'; if ( EUROPEAN_DATE == date_format) /*european*/ { - time[9] = c[6]; /*day*/ - time[10] = c[7]; - time[11] = '/'; - time[12] = c[4]; /*month*/ - time[13] = c[5]; + camel_time[9] = c[6]; /*day*/ + camel_time[10] = c[7]; + camel_time[11] = '/'; + camel_time[12] = c[4]; /*month*/ + camel_time[13] = c[5]; } else /*american*/ { - time[9] = c[4]; /*month*/ - time[10] = c[5]; - time[11] = '/'; - time[12] = c[6]; /*day*/ - time[13] = c[7]; + camel_time[9] = c[4]; /*month*/ + camel_time[10] = c[5]; + camel_time[11] = '/'; + camel_time[12] = c[6]; /*day*/ + camel_time[13] = c[7]; } - time[14] = '/'; - time[15] = c[0]; - time[16] = c[1]; - time[17] = c[2]; - time[18] = c[3]; + camel_time[14] = '/'; + camel_time[15] = c[0]; + camel_time[16] = c[1]; + camel_time[17] = c[2]; + camel_time[18] = c[3]; - time[CAMEL_DATE_AND_TIME_LEN - 1] = '\0'; + camel_time[CAMEL_DATE_AND_TIME_LEN - 1] = '\0'; /*start = 0, length = 7*/ @@ -396,7 +396,7 @@ proto_tree *subtree; tvb, 0, 7, - time); + camel_time); return 7; /* 7 octets eaten*/ #.END |