gnome-utils r8313 - trunk/logview
- From: cosimoc svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-utils r8313 - trunk/logview
- Date: Tue, 23 Dec 2008 13:28:09 +0000 (UTC)
Author: cosimoc
Date: Tue Dec 23 13:28:09 2008
New Revision: 8313
URL: http://svn.gnome.org/viewvc/gnome-utils?rev=8313&view=rev
Log:
Removed crc checks from the GZip code.
Modified:
trunk/logview/logview-log.c
Modified: trunk/logview/logview-log.c
==============================================================================
--- trunk/logview/logview-log.c (original)
+++ trunk/logview/logview-log.c Tue Dec 23 13:28:09 2008
@@ -84,7 +84,6 @@
GInputStream *parent_str;
guchar * buffer;
GFile *file;
- guint32 crc;
gboolean last_str_result;
int last_z_result;
@@ -453,7 +452,6 @@
ret->parent_str = g_object_ref (parent_stream);
ret->file = g_object_ref (file);
ret->buffer = NULL;
- ret->crc = crc32 (0, Z_NULL, 0);
return ret;
}
@@ -539,12 +537,10 @@
gsize * bytes_read)
{
z_stream *zstream;
- guchar *crc_start;
gboolean res;
int z_result;
*bytes_read = 0;
- crc_start = buffer;
zstream = &gz->zstream;
if (gz->last_z_result != Z_OK) {
@@ -581,7 +577,6 @@
}
}
- gz->crc = crc32 (gz->crc, crc_start, (guint) (zstream->next_out - crc_start));
*bytes_read = num_bytes - zstream->avail_out;
return TRUE;
@@ -673,6 +668,7 @@
GInputStream *real_is;
time_t mtime;
+ /* this also skips the header from |is| */
res = read_gzip_header (is, &mtime);
if (!res) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]