summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-05 14:44:27 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-05 14:44:27 -0700
commitc24fd4b82cf4476c6d9c863ee03f2d729b64e5f0 (patch)
treee2585459dafdcb544bfc4ff3e91e94a84fc72341 /dive.c
parent8197d7f4d4702d18df5b2121b5e0126c61e1b7ea (diff)
parent11becb87505b8cdf6fbf2f10941f87d394e49f80 (diff)
downloadsubsurface-c24fd4b82cf4476c6d9c863ee03f2d729b64e5f0.tar.gz
Merge branch 'open-files' of git://github.com/nathansamson/diveclog
* 'open-files' of git://github.com/nathansamson/diveclog: Report errors when opening files Make it possible to load multiple files at once. Open File works. I refactored the code and introduced a new type. I never used it as a pointer (their was no real reason), but I'm not really satisfied.
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/dive.c b/dive.c
index 5039abbbd..ba5200f51 100644
--- a/dive.c
+++ b/dive.c
@@ -130,8 +130,6 @@ struct dive *fixup_dive(struct dive *dive)
}
/* Don't pick a zero for MERGE_MIN() */
-#define MIN(a,b) ((a)<(b)?(a):(b))
-#define MAX(a,b) ((a)>(b)?(a):(b))
#define MERGE_MAX(res, a, b, n) res->n = MAX(a->n, b->n)
#define MERGE_MIN(res, a, b, n) res->n = (a->n)?(b->n)?MIN(a->n, b->n):(a->n):(b->n)