[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 05 of 18] tools/blktap: remove unneeded pointer dereferencing from qcow2raw.c
# HG changeset patch # User Olaf Hering <olaf@xxxxxxxxx> # Date 1333397528 -7200 # Node ID cbdba2284f36dba539b7f5a0cded571c96f2bc4c # Parent ae6bf2207a4e36ca6a60b42e82f79b8de09acec3 tools/blktap: remove unneeded pointer dereferencing from qcow2raw.c qcow2raw.c: In function 'print_bytes': qcow2raw.c:76:9: warning: value computed is not used [-Wunused-value] Do not dereference pointer before increment. Signed-off-by: Olaf Hering <olaf@xxxxxxxxx> diff -r ae6bf2207a4e -r cbdba2284f36 tools/blktap/drivers/qcow2raw.c --- a/tools/blktap/drivers/qcow2raw.c +++ b/tools/blktap/drivers/qcow2raw.c @@ -73,7 +73,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 |