aboutsummaryrefslogtreecommitdiffstats
path: root/cochran.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2014-10-28 13:35:16 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-28 07:40:27 -0700
commit85df7ebb0288fa988c83e3783ae7eb0d10567960 (patch)
treeeea8325bce5d507b64b1e6e2b3b043a4c843cd87 /cochran.c
parent469f42f8d58a8427e51a75e1ed5d1e2639122d8e (diff)
downloadsubsurface-85df7ebb0288fa988c83e3783ae7eb0d10567960.tar.gz
cochran.c: make cochran_predive_event_bytes() return 0
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@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'cochran.c')
-rw-r--r--cochran.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cochran.c b/cochran.c
index 142069991..d486f568a 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)