diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-05-04 17:18:15 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-05-04 17:18:15 +0000 |
commit | 9bad4b330d51b22715dc8a2e347183db88855c76 (patch) | |
tree | 0c797dc0f49765c4eb63acc8e82bb6bbef8c8186 /wiretap | |
parent | 33bb54a9452f4be53377a185195a63194016241a (diff) |
ng_file_seek_rand() is supposed to return a Boolean; make it do so.
svn path=/trunk/; revision=42424
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/ngsniffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/ngsniffer.c b/wiretap/ngsniffer.c index ec2fe89c9c..6c72c1a06c 100644 --- a/wiretap/ngsniffer.c +++ b/wiretap/ngsniffer.c @@ -2750,7 +2750,7 @@ ng_file_seek_rand(wtap *wth, gint64 offset, int *err, gchar **err_info) /* Seek in the compressed file to the offset in the compressed file of the beginning of that blob. */ if (file_seek(wth->random_fh, new_blob->blob_comp_offset, SEEK_SET, err) == -1) - return -1; + return FALSE; /* Make the blob we found the current one. */ ngsniffer->current_blob = new; @@ -2762,7 +2762,7 @@ ng_file_seek_rand(wtap *wth, gint64 offset, int *err, gchar **err_info) /* Now fill the buffer. */ if (read_blob(wth->random_fh, &ngsniffer->rand, err, err_info) < 0) - return -1; + return FALSE; /* Set "delta" to the amount to move within this blob; it had better be >= 0, and < the amount of uncompressed data in @@ -2779,5 +2779,5 @@ ng_file_seek_rand(wtap *wth, gint64 offset, int *err, gchar **err_info) ngsniffer->rand.nextout += (int) delta; ngsniffer->rand.uncomp_offset += delta; - return offset; + return TRUE; } |