summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-08-21 15:37:38 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-08-21 15:37:38 -0700
commite46688d694d33f445ecb2368541898613af0f3b3 (patch)
treee82c2264d250d0a9a8ca5213a157d50cdfb9f5f1 /dive.h
parent0c49d406e0a7dd1fc66da81ece40405fd053302c (diff)
downloadsubsurface-e46688d694d33f445ecb2368541898613af0f3b3.tar.gz
Fix single-dive editing oddity
The multi-dive case does fine, but the single-dive case (used when adding a dive, for example) was somewhat confused between the dive index (which is the location in the dive array) and the dive number. Fix this by just passing the dive pointer instead (where NULL means to use the current dive selection). Reported-by: Jacco van Koll <jacco.van.koll@gmail.com> Root-caused-by: Dirk Hohndel <dirk@hohndel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dive.h b/dive.h
index cc27ab861..7ceab643a 100644
--- a/dive.h
+++ b/dive.h
@@ -355,7 +355,7 @@ extern void evn_foreach(void (*callback)(const char *, int *, void *), void *dat
extern int add_new_dive(struct dive *dive);
extern int edit_dive_info(struct dive *dive);
-extern int edit_multi_dive_info(int idx);
+extern int edit_multi_dive_info(struct dive *single_dive);
extern void dive_list_update_dives(void);
extern void flush_divelist(struct dive *dive);