diff options
| author | Richard Nyberg <rnyberg@murmeldjur.se> | 2006-10-31 10:03:49 +0000 |
|---|---|---|
| committer | Richard Nyberg <rnyberg@murmeldjur.se> | 2006-10-31 10:03:49 +0000 |
| commit | d5700c2f204dcd261e49ce06068c8a5c330b326f (patch) | |
| tree | 664f6f2ed6e3a953bd5354bc0a882ef490bcb817 | |
| parent | 1b7bb76fb78ec8f03999aaa9824f811f1fcf2c27 (diff) | |
| download | btpd-d5700c2f204dcd261e49ce06068c8a5c330b326f.tar.gz btpd-d5700c2f204dcd261e49ce06068c8a5c330b326f.zip | |
Add max(x, y) macro.
| -rw-r--r-- | misc/subr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/subr.h b/misc/subr.h index 25bca0d..e9eb088 100644 --- a/misc/subr.h +++ b/misc/subr.h @@ -4,7 +4,9 @@ #include <stdio.h> #include <stdarg.h> +#define max(x, y) ((x) >= (y) ? (x) : (y)) #define min(x, y) ((x) <= (y) ? (x) : (y)) + #define SHAHEXSIZE 41 int set_nonblocking(int fd); |