Save and restore a "dive number"

Some people want to know how many dives they have under their belt, so
let's save and restore the dive number if it exists.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2011-09-11 11:36:33 -07:00
parent d1b30212ff
commit 6538e5bba0
3 changed files with 13 additions and 4 deletions

1
dive.h
View file

@ -128,6 +128,7 @@ struct sample {
#define MAX_CYLINDERS (8)
struct dive {
int nr;
time_t when;
char *location;
char *notes;