[PATCH 4/4] cochran.c: make cochran_predive_event_bytes() return 0

Lubomir I. Ivanov neolit123 at gmail.com
Tue Oct 28 04:35:16 PDT 2014


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

It seems that an iteration will happen even if the function
returns 0, but this looks like a non-breaking change.

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
 cochran.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cochran.c b/cochran.c
index 1420699..d486f56 100644
--- a/cochran.c
+++ b/cochran.c
@@ -285,6 +285,8 @@ static int cochran_predive_event_bytes(unsigned char code)
 		return emc_event_bytes[x][1];
 		break;
 	}
+
+	return 0;
 }
 
 int cochran_dive_event_bytes(unsigned char event)
-- 
1.7.11.msysgit.0



More information about the subsurface mailing list