|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] warn_unused_result fixes
More fixes prompted by gcc's warn_unused_result, in the tools directory.
Note that some of the existing error checking for asprintf was wrong for Linux.
asprintf in glibc returns -1 on error, but leaves the pointer uninitialized.
Only the BSDs zero out the pointer on error.
Also, while fixing these warnings I saw several error paths that were
incorrect. This patch minimally fixes the warn_unused_result; more complete
error path cleanup will be a later patch.
Please apply to xen-unstable.
Signed-off-by: Charles Coffing <ccoffing@xxxxxxxxxx>
warn-unused-result.diff
Description: Binary data
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] warn_unused_result fixes,
Charles Coffing <=
|
|
|
|
|