[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 09 of 18] tools/blktap2: remove unneeded pointer dereferencing from img2qcow.c
# HG changeset patch # User Olaf Hering <olaf@xxxxxxxxx> # Date 1333397548 -7200 # Node ID 9b7de2b8d7d6c8312e10dabb68ebebeb5bfd1787 # Parent e9b9e8254311fb61930ab5a954e777928466c607 tools/blktap2: remove unneeded pointer dereferencing from img2qcow.c img2qcow.c: In function 'print_bytes': img2qcow.c:90:9: warning: value computed is not used [-Wunused-value] Do not dereference pointer before increment. Signed-off-by: Olaf Hering <olaf@xxxxxxxxx> diff -r e9b9e8254311 -r 9b7de2b8d7d6 tools/blktap2/drivers/img2qcow.c --- a/tools/blktap2/drivers/img2qcow.c +++ b/tools/blktap2/drivers/img2qcow.c @@ -87,7 +87,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 |