[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 01 of 18] tools/blktap: fix access errors in convert_dev_name_to_num
Ian Jackson writes ("Re: [Xen-devel] [PATCH 01 of 18] tools/blktap: fix access errors in convert_dev_name_to_num"): > Olaf Hering writes ("[Xen-devel] [PATCH 01 of 18] tools/blktap: fix access > errors in convert_dev_name_to_num"): > > xs_api.c: In function 'convert_dev_name_to_num': > ... > > ptr should be increased in each iteration, not the char it points to. > > These changes from `*p++;' to `p++' are correct. But the description > is wrong. `*p++' is the same as `*(p++)' ie it increments p and then > uselessly dereferences it. It's been pointed out to me that this rather loose language is unclear. `*p++' increments p and but dereferences _the old value_ of p. The point I was making is that it does not increment (*p). Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |