mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix up dive number naming
Use "dive->number" instead of "dive->nr". And make the XML match too. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
9580109406
commit
1cc62d5811
4 changed files with 7 additions and 8 deletions
|
@ -206,8 +206,8 @@ static void save_dive(FILE *f, struct dive *dive)
|
|||
struct tm *tm = gmtime(&dive->when);
|
||||
|
||||
fputs("<dive", f);
|
||||
if (dive->nr)
|
||||
fprintf(f, " nr='%d'", dive->nr);
|
||||
if (dive->number)
|
||||
fprintf(f, " number='%d'", dive->number);
|
||||
fprintf(f, " date='%04u-%02u-%02u'",
|
||||
tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday);
|
||||
fprintf(f, " time='%02u:%02u:%02u'",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue