diff options
author | Jörg Mayer <jmayer@loplof.de> | 2005-07-30 16:34:38 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2005-07-30 16:34:38 +0000 |
commit | eab0aeb4bb9f98994edccac5dc5cd303274c0054 (patch) | |
tree | 9dfa68d0b17ff7a5b589a851e264a77b99ab2852 /epan/dissectors/packet-icq.c | |
parent | 38d1c38e99a8a7a22d50476f1698af80998a5be5 (diff) |
More char -> const char fixes
Declare some functions static
svn path=/trunk/; revision=15158
Diffstat (limited to 'epan/dissectors/packet-icq.c')
-rw-r--r-- | epan/dissectors/packet-icq.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/epan/dissectors/packet-icq.c b/epan/dissectors/packet-icq.c index 0cd196c6ed..73f22ac9e6 100644 --- a/epan/dissectors/packet-icq.c +++ b/epan/dissectors/packet-icq.c @@ -549,7 +549,7 @@ static guint16 proto_add_icq_attr(proto_tree* tree, /* The tree to add to */ tvbuff_t *tvb, /* Tvbuff with packet */ const int offset, /* Offset from the start of packet of field */ - char* descr) /* The description to use in the tree */ + const char* descr) /* The description to use in the tree */ { guint16 len; @@ -577,12 +577,12 @@ icqv5_decode_msgType(proto_tree* tree, gint sep_offset; int sz; /* Size of the current element */ unsigned int n; - static char* url_field_descr[] = { + static const char* url_field_descr[] = { "Description", "URL", }; #define N_URL_FIELDS (sizeof url_field_descr / sizeof url_field_descr[0]) - static char* email_field_descr[] = { + static const char* email_field_descr[] = { "Nickname", "First name", "Last name", @@ -591,7 +591,7 @@ icqv5_decode_msgType(proto_tree* tree, "Text" }; #define N_EMAIL_FIELDS (sizeof email_field_descr / sizeof email_field_descr[0]) - static char* auth_req_field_descr[] = { + static const char* auth_req_field_descr[] = { "Nickname", "First name", "Last name", @@ -600,7 +600,7 @@ icqv5_decode_msgType(proto_tree* tree, "Reason" }; #define N_AUTH_REQ_FIELDS (sizeof auth_req_field_descr / sizeof auth_req_field_descr[0]) - static char* user_added_field_descr[] = { + static const char* user_added_field_descr[] = { "Nickname", "First name", "Last name", @@ -1484,13 +1484,13 @@ icqv5_srv_meta_user(proto_tree* tree, /* Tree to put the data in */ * They are used to "implement" a poorman's exception handling */ int len = 0; - char *descr[] = { + const char *descr[] = { "Nick", "First name", "Last name", "Email", NULL}; - char** d = descr; + const char** d = descr; unsigned char auth; /* * Read UIN |