From 50d0391dfbf8f63894abeb288dd4467f06f31b4c Mon Sep 17 00:00:00 2001 From: Jan Schubert Date: Thu, 24 Jan 2013 23:09:53 +0100 Subject: Centralization for Kelvin and Standardization to milliKelvin This centralizes all occurrences of Kelvin to dive.h and standardizes all usages to milliKelvin. [Dirk Hohndel: renamed the constant plus minor white space cleanup] Signed-off-by: Jan Schubert Signed-off-by: Dirk Hohndel --- save-xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'save-xml.c') diff --git a/save-xml.c b/save-xml.c index afee34da5..6e33cd5e6 100644 --- a/save-xml.c +++ b/save-xml.c @@ -37,7 +37,7 @@ static void show_milli(FILE *f, const char *pre, int value, const char *unit, co static void show_temperature(FILE *f, temperature_t temp, const char *pre, const char *post) { if (temp.mkelvin) - show_milli(f, pre, temp.mkelvin - 273150, " C", post); + show_milli(f, pre, temp.mkelvin - ZERO_C_IN_MKELVIN, " C", post); } static void show_depth(FILE *f, depth_t depth, const char *pre, const char *post) -- cgit v1.2.3-70-g09d2