diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-12-02 23:43:30 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-12-02 23:43:30 +0000 |
commit | 59932f27227c4769be94fb46936d123d1770c1a2 (patch) | |
tree | dd1b62868737457d51efa73389ae4975567f4fe3 /conditions.c | |
parent | 8414298f8921489c6174c24d4363c391822e83c5 (diff) | |
download | wireshark-59932f27227c4769be94fb46936d123d1770c1a2.tar.gz wireshark-59932f27227c4769be94fb46936d123d1770c1a2.tar.bz2 wireshark-59932f27227c4769be94fb46936d123d1770c1a2.zip |
Don't cast away constness, and fix variable and structure member
qualifiers as necessary to ensure that we don't have to.
"strcmp()", "strcasecmp()", and "memcmp()" don't return booleans; don't
test their results as if they did.
Use "guint8", not "guchar", for a pointer to (one or more) 8-bit bytes.
Update Michael Tuexen's e-mail address.
svn path=/trunk/; revision=6726
Diffstat (limited to 'conditions.c')
-rw-r--r-- | conditions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/conditions.c b/conditions.c index b9ae406f27..74f08b49a8 100644 --- a/conditions.c +++ b/conditions.c @@ -1,7 +1,7 @@ /* conditions.c * Implementation for condition handler. * - * $Id: conditions.c,v 1.3 2002/08/28 21:00:06 jmayer Exp $ + * $Id: conditions.c,v 1.4 2002/12/02 23:43:25 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -161,7 +161,7 @@ gboolean cnd_register_class(const char* class_id, static char* pkey = NULL; void cnd_unregister_class(const char* class_id){ - char *key = (char*)class_id; + const char *key = (const char*)class_id; _cnd_class *cls = NULL; /* check if hash table is already initialized */ _cnd_init(); |