[Pkg-libvirt-commits] [libguestfs] 214/233: builder: pxzcat: Fix char * signedness warning.

Hilko Bengen bengen at moszumanska.debian.org
Wed Feb 19 21:12:25 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit e4fe09c5ae28ee34d87bceecf58f72cc43af6249
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Thu Feb 13 17:48:06 2014 +0000

    builder: pxzcat: Fix char * signedness warning.
---
 builder/pxzcat-c.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/builder/pxzcat-c.c b/builder/pxzcat-c.c
index 5ffc9d9..06d46fc 100644
--- a/builder/pxzcat-c.c
+++ b/builder/pxzcat-c.c
@@ -381,7 +381,7 @@ parse_indexes (value filenamev, int fd)
  * http://stackoverflow.com/questions/1493936/faster-means-of-checking-for-an-empty-buffer-in-c/1493989#1493989
  */
 static inline int
-is_zero (const char *buffer, size_t size)
+is_zero (const unsigned char *buffer, size_t size)
 {
   size_t i;
 
@@ -489,7 +489,7 @@ worker_thread (void *vp)
   lzma_ret r;
   lzma_stream strm = LZMA_STREAM_INIT;
   uint8_t buf[BUFFER_SIZE];
-  char outbuf[BUFFER_SIZE];
+  unsigned char outbuf[BUFFER_SIZE];
   size_t i;
   lzma_bool iter_finished;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list