aboutsummaryrefslogtreecommitdiffstats
path: root/tethereal.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-02-04 20:54:12 +0000
committerGuy Harris <guy@alum.mit.edu>2005-02-04 20:54:12 +0000
commit2c89242aac8c22f79fd8246079a729c5f65ba5d1 (patch)
tree3027f6245dc896065099102f92fdd997376bde97 /tethereal.c
parentd3e4fe620c12b45becc754f684d14ce9d8357ea7 (diff)
Instead of having a single enumerated type for status return values from
cf_ functions, have separate ones for different classes of routines, and use gboolean when the return value is just "success" or "failure" - that way you don't get compiler warnings if a case statement isn't handling a particular status value if the routine in question won't return it. svn path=/trunk/; revision=13293
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 26b30b5bf5..3eebd27a72 100644
--- a/tethereal.c
+++ b/tethereal.c
@@ -3196,7 +3196,7 @@ open_failure_message(const char *filename, int err, gboolean for_writing)
fprintf(stderr, "\n");
}
-cf_status_t
+gboolean
cf_open(capture_file *cf, char *fname, gboolean is_tempfile, int *err)
{
wtap *wth;
@@ -3243,13 +3243,13 @@ cf_open(capture_file *cf, char *fname, gboolean is_tempfile, int *err)
firstsec = 0, firstusec = 0;
prevsec = 0, prevusec = 0;
- return CF_OK;
+ return TRUE;
fail:
snprintf(err_msg, sizeof err_msg,
cf_open_error_message(*err, err_info, FALSE, 0), fname);
fprintf(stderr, "tethereal: %s\n", err_msg);
- return CF_ERROR;
+ return FALSE;
}
#ifdef HAVE_LIBPCAP