aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-09-11 06:48:33 +0000
committerGuy Harris <guy@alum.mit.edu>1999-09-11 06:48:33 +0000
commitde7081f8ffe105c94076305da48547b404886371 (patch)
treed57f7cae0433560e93ea83d6ec3449d32f30dd5e
parent4c6f416754513b9e4e6a6d436be47df8794afd40 (diff)
Include "ascend.h" to declare "ascend_seek_read()".
"wtap_seek_read()" should return the value of "ascend_seek_read()" or "wtap_def_seek_read()". svn path=/trunk/; revision=656
-rw-r--r--wiretap/wtap.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/wiretap/wtap.c b/wiretap/wtap.c
index 275c5a1271..64cee4e534 100644
--- a/wiretap/wtap.c
+++ b/wiretap/wtap.c
@@ -1,6 +1,6 @@
/* wtap.c
*
- * $Id: wtap.c,v 1.18 1999/09/11 04:50:44 gerald Exp $
+ * $Id: wtap.c,v 1.19 1999/09/11 06:48:33 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu>
@@ -27,6 +27,7 @@
#endif
#include "wtap.h"
#include "buffer.h"
+#include "ascend.h"
FILE* wtap_file(wtap *wth)
{
@@ -187,13 +188,14 @@ int wtap_loop(wtap *wth, int count, wtap_handler callback, u_char* user,
return TRUE; /* success */
}
-int wtap_seek_read (int encaps, FILE *fh, int seek_off, guint8 *pd, int len) {
+int wtap_seek_read(int encaps, FILE *fh, int seek_off, guint8 *pd, int len)
+{
switch (encaps) {
- case WTAP_ENCAP_ASCEND:
- ascend_seek_read(fh, seek_off, pd, len);
- break;
- default:
- wtap_def_seek_read(fh, seek_off, pd, len);
- break;
+
+ case WTAP_ENCAP_ASCEND:
+ return ascend_seek_read(fh, seek_off, pd, len);
+
+ default:
+ return wtap_def_seek_read(fh, seek_off, pd, len);
}
}