diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-11 11:36:33 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-11 15:49:17 -0700 |
commit | 1cc62d581158d52252f2ad7ef076811129510141 (patch) | |
tree | c549323d6d24783ae8f3ba4f7cd7fc3b868a24db /save-xml.c | |
parent | 9580109406f79698b570e917c21b8844f9de34b5 (diff) | |
download | subsurface-1cc62d581158d52252f2ad7ef076811129510141.tar.gz |
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>
Diffstat (limited to 'save-xml.c')
-rw-r--r-- | save-xml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/save-xml.c b/save-xml.c index e47092ebc..3ed67fe39 100644 --- a/save-xml.c +++ b/save-xml.c @@ -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'", |