aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/tnef.c
diff options
context:
space:
mode:
Diffstat (limited to 'wiretap/tnef.c')
-rw-r--r--wiretap/tnef.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/wiretap/tnef.c b/wiretap/tnef.c
index 3dcc5e40ca..85115a11b2 100644
--- a/wiretap/tnef.c
+++ b/wiretap/tnef.c
@@ -101,15 +101,15 @@ int tnef_open(wtap *wth, int *err, gchar **err_info)
guint32 magic;
if (!wtap_read_bytes(wth->fh, &magic, sizeof magic, err, err_info))
- return (*err != WTAP_ERR_SHORT_READ) ? -1 : 0;
+ return (*err != WTAP_ERR_SHORT_READ) ? WTAP_OPEN_ERROR : WTAP_OPEN_NOT_MINE;
if (GUINT32_TO_LE(magic) != TNEF_SIGNATURE)
/* Not a tnef file */
- return 0;
+ return WTAP_OPEN_NOT_MINE;
/* seek back to the start of the file */
if (file_seek(wth->fh, 0, SEEK_SET, err) == -1)
- return -1;
+ return WTAP_OPEN_ERROR;
wth->file_type_subtype = WTAP_FILE_TYPE_SUBTYPE_TNEF;
wth->file_encap = WTAP_ENCAP_TNEF;
@@ -119,5 +119,5 @@ int tnef_open(wtap *wth, int *err, gchar **err_info)
wth->subtype_seek_read = tnef_seek_read;
wth->file_tsprec = WTAP_TSPREC_SEC;
- return 1;
+ return WTAP_OPEN_MINE;
}