tools:iio:generic_buffer: add error handling
authorHartmut Knaack <knaack.h@gmx.de>
Sun, 31 May 2015 12:40:04 +0000 (14:40 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2015 18:24:18 +0000 (19:24 +0100)
commit6bb7cac8551e2d60edbd25a6d046cc45932c4c3e
tree34a1b4188e6cc0724095f74e7a298696db45e469
parentc8ce9903cba202936999c2c9463fbb370ee145ba
tools:iio:generic_buffer: add error handling

Add error handling to calls which can indicate a major problem by
returning an error code.

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