summaryrefslogtreecommitdiff
path: root/wiretap/file_wrappers.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-01-06 20:20:35 +0000
committerGuy Harris <guy@alum.mit.edu>2013-01-06 20:20:35 +0000
commit40a5e8b9919862617a6d01fe7cdbb9bf44a05e57 (patch)
treefb1edd8daf9c63300276b5c5bb5453b7a4a786d7 /wiretap/file_wrappers.c
parentb6d08dca21f36eea82f440ed136fde31123d28df (diff)
downloadwireshark-40a5e8b9919862617a6d01fe7cdbb9bf44a05e57.tar.gz
Clean up comment alignment.
Get rid of unnecessary pointer cast. svn path=/trunk/; revision=46982
Diffstat (limited to 'wiretap/file_wrappers.c')
-rw-r--r--wiretap/file_wrappers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/wiretap/file_wrappers.c b/wiretap/file_wrappers.c
index 45b8f8f3cc..6fb2a9371d 100644
--- a/wiretap/file_wrappers.c
+++ b/wiretap/file_wrappers.c
@@ -109,12 +109,12 @@ struct wtap_reader {
int fd; /* file descriptor */
gint64 raw_pos; /* current position in file (just to not call lseek()) */
gint64 pos; /* current position in uncompressed data */
- guint size; /* buffer size */
+ guint size; /* buffer size */
unsigned char *in; /* input buffer */
unsigned char *out; /* output buffer (double-sized when reading) */
unsigned char *next; /* next output data to deliver or write */
- guint have; /* amount of output data unused at next */
+ guint have; /* amount of output data unused at next */
int eof; /* true if end of input file reached */
gint64 start; /* where the gzip data started, for rewinding */
gint64 raw; /* where the raw data started, for seeking */
@@ -127,7 +127,7 @@ struct wtap_reader {
int err; /* error code */
const char *err_info; /* additional error information string for some errors */
- unsigned int avail_in; /* number of bytes available at next_in */
+ guint avail_in; /* number of bytes available at next_in */
unsigned char *next_in; /* next input byte */
#ifdef HAVE_LIBZ
/* zlib inflate stream */
@@ -176,7 +176,7 @@ fill_in_buffer(FILE_T state)
if (state->err)
return -1;
if (state->eof == 0) {
- if (raw_read(state, state->in, state->size, (guint *)&(state->avail_in)) == -1)
+ if (raw_read(state, state->in, state->size, &(state->avail_in)) == -1)
return -1;
state->next_in = state->in;
}