kernel-ark/tools/iio
Hartmut Knaack 2b6a6e67af tools:iio: save errno first
The man-page of errno states, that errno should be saved before doing any
library call, as that call may have changed the value of errno. So, when
encountering any error, save errno first.
This patch affects generic_buffer.c, iio_event_monitor.c and iio_utils.c.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-05-31 17:32:44 +01:00
..
generic_buffer.c tools:iio: save errno first 2015-05-31 17:32:44 +01:00
iio_event_monitor.c tools:iio: save errno first 2015-05-31 17:32:44 +01:00
iio_utils.c tools:iio: save errno first 2015-05-31 17:32:44 +01:00
iio_utils.h
lsiio.c tools:iio:lsiio: add closedir before exit 2015-05-31 17:30:29 +01:00
Makefile iio: make tools more cross-compilation friendly 2015-05-10 20:31:45 +01:00