tools:iio:lsiio: add error handling
authorHartmut Knaack <knaack.h@gmx.de>
Sun, 31 May 2015 12:40:15 +0000 (14:40 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2015 18:45:00 +0000 (19:45 +0100)
commitacf50b3586f8d8a7530b905e111dda41876d38f4
treedcc9ac4a39397c5ef274c021e67f4c41a59eaab7
parent53118557b6a9c263e4a80825da367b2116529541
tools:iio:lsiio: add error handling

Add error handling to calls which can indicate a major problem by
returning an error code.
This also involves to change the type of dump_devices() from void to int.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
tools/iio/lsiio.c