aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/erf.c
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2010-11-04 06:37:58 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2010-11-04 06:37:58 +0000
commitd6c7ebee866e72124d0e1f62e8c84570435a0b74 (patch)
treeb33faddded3ed67bdaaf7f2ef521ffbd7f250b91 /wiretap/erf.c
parent562eb76905beceb0e74b747810b671744af0dc3d (diff)
From Alexis La Goutte:
Replace all *_min()/*_max() by MIN() and MAX(). svn path=/trunk/; revision=34770
Diffstat (limited to 'wiretap/erf.c')
-rw-r--r--wiretap/erf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/wiretap/erf.c b/wiretap/erf.c
index ba31714f69..1562fb3d70 100644
--- a/wiretap/erf.c
+++ b/wiretap/erf.c
@@ -56,9 +56,6 @@
#include "atm.h"
#include "erf.h"
-#ifndef min
-#define min(a, b) ((a) > (b) ? (b) : (a))
-#endif
static int erf_read_header(FILE_T fh,
struct wtap_pkthdr *phdr,
@@ -447,7 +444,7 @@ static int erf_read_header(FILE_T fh,
if (phdr != NULL) {
phdr->len = g_htons(erf_header->wlen);
- phdr->caplen = min( g_htons(erf_header->wlen),
+ phdr->caplen = MIN( g_htons(erf_header->wlen),
g_htons(erf_header->rlen) - (guint32)sizeof(*erf_header) - skiplen );
}
return TRUE;