aboutsummaryrefslogtreecommitdiffstats
path: root/tethereal.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-12-02 23:43:30 +0000
committerGuy Harris <guy@alum.mit.edu>2002-12-02 23:43:30 +0000
commit59932f27227c4769be94fb46936d123d1770c1a2 (patch)
treedd1b62868737457d51efa73389ae4975567f4fe3 /tethereal.c
parent8414298f8921489c6174c24d4363c391822e83c5 (diff)
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 'tethereal.c')
-rw-r--r--tethereal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tethereal.c b/tethereal.c
index 66b44e97b8..f4a575d2f3 100644
--- a/tethereal.c
+++ b/tethereal.c
@@ -1,6 +1,6 @@
/* tethereal.c
*
- * $Id: tethereal.c,v 1.170 2002/11/10 20:53:03 gerald Exp $
+ * $Id: tethereal.c,v 1.171 2002/12/02 23:43:30 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1109,10 +1109,10 @@ capture(int out_file_type)
init_capture_stop_conditions();
/* create stop conditions */
if (capture_opts.has_autostop_filesize)
- cnd_stop_capturesize = cnd_new((char*)CND_CLASS_CAPTURESIZE,
+ cnd_stop_capturesize = cnd_new((const char*)CND_CLASS_CAPTURESIZE,
(long)capture_opts.autostop_filesize * 1000);
if (capture_opts.has_autostop_duration)
- cnd_stop_timeout = cnd_new((char*)CND_CLASS_TIMEOUT,
+ cnd_stop_timeout = cnd_new((const char*)CND_CLASS_TIMEOUT,
(gint32)capture_opts.autostop_duration);
if (!setjmp(ld.stopenv)) {