[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 03 of 18] tools/blktap: fix access error in img2qcow.c
# HG changeset patch # User Olaf Hering <olaf@xxxxxxxxx> # Date 1333046228 -7200 # Node ID 526135e426fa80dfd58c272b41cd3f4ab39c62d6 # Parent 5c77f79cc3064b575c1da2b8fb28eec53dd8bfdc tools/blktap: fix access error in img2qcow.c img2qcow.c: In function 'print_bytes': img2qcow.c:72:9: warning: value computed is not used [-Wunused-value] Increment the pointer, not the char it points to. Signed-off-by: Olaf Hering <olaf@xxxxxxxxx> diff -r 5c77f79cc306 -r 526135e426fa tools/blktap/drivers/img2qcow.c --- a/tools/blktap/drivers/img2qcow.c +++ b/tools/blktap/drivers/img2qcow.c @@ -69,7 +69,7 @@ static void print_bytes(void *ptr, int l DFPRINTF("Buf dump, length %d:\n",length); for (k = 0; k < length; k++) { DFPRINTF("%x",*p); - *p++; + p++; if(k % 16 == 0) DFPRINTF("\n"); else if(k % 2 == 0) DFPRINTF(" "); } _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |