From b1a92ccedf218f9c894f1d720a890373391bca93 Mon Sep 17 00:00:00 2001 From: Willem Ferguson Date: Mon, 25 Aug 2014 10:03:46 +0200 Subject: Code cleanup: gaspressures.c This patch does some cleaning up of code after the previous CCR patch that extracted the contents of gaspressures.c form profile.c 1) Inapplicable #defines were removed 2) static function types were reinstated where practically possible. 3) comments at the start of the file were expanded a bit. Signed-off-by: Willem Ferguson Signed-off-by: Dirk Hohndel --- profile.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'profile.h') diff --git a/profile.h b/profile.h index 67e61521f..55bb396f6 100644 --- a/profile.h +++ b/profile.h @@ -81,13 +81,11 @@ int get_maxtime(struct plot_info *pi); * partial pressure graphs */ int get_maxdepth(struct plot_info *pi); - #define SENSOR_PR 0 #define INTERPOLATED_PR 1 #define SENSOR_PRESSURE(_entry) (_entry)->pressure[SENSOR_PR] #define INTERPOLATED_PRESSURE(_entry) (_entry)->pressure[INTERPOLATED_PR] #define GET_PRESSURE(_entry) (SENSOR_PRESSURE(_entry) ? SENSOR_PRESSURE(_entry) : INTERPOLATED_PRESSURE(_entry)) - #define SAC_WINDOW 45 /* sliding window in seconds for current SAC calculation */ #ifdef __cplusplus -- cgit v1.2.3-70-g09d2