From f3b8d9da21cd2cfcc9a4c8d6468e9701d0725f29 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Fri, 17 Dec 2010 21:40:45 +0100 Subject: [PATCH] Return the error code instead of success. --- src/uwatec_smart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uwatec_smart.c b/src/uwatec_smart.c index aeb39b1..8292677 100644 --- a/src/uwatec_smart.c +++ b/src/uwatec_smart.c @@ -459,7 +459,7 @@ uwatec_smart_device_foreach (device_t *abstract, dive_callback_t callback, void dc_buffer_free (buffer); - return DEVICE_STATUS_SUCCESS; + return rc; }