I haven't quite got to my goal of removing _GNU_SOURCE (yet), but this
patch along the way creates a lib/ subdirectory and moves the common
buffer code (from qemud/buf.[ch] and in src/xml.[ch]) there.
There are many, many places which call the buffer functions without
checking the return value. I have manually verified / fixed up the
calls which do bother to check return values, but not added any more
checks where they don't.
Rich.
--
Emerging Technologies, Red Hat -
http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903