summaryrefslogtreecommitdiff
path: root/smbutil.c
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2014-03-14 09:52:40 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2014-03-14 09:55:30 +0400
commitdbfdf97bdedca08dc9bd59bb706b0ccc827633ac (patch)
tree6f0c04ddf5059f5dc52cc5dbe6d63e3557687d00 /smbutil.c
parentd29f3dab95d8b28a62848fcb043b8ba40348bc3d (diff)
downloadtcpdump-dbfdf97bdedca08dc9bd59bb706b0ccc827633ac.tar.gz
justify min()/max() macros declarations and usage
This change moves the macros to tcpdump-stdinc.h to make sure these are available without interface.h. It also dismisses two redundant macros MIN() and SMBMIN(). It is intended to fix the following Solaris compile error: Undefined first referenced symbol in file MIN print-zeromq.o
Diffstat (limited to 'smbutil.c')
-rw-r--r--smbutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/smbutil.c b/smbutil.c
index 43783aa4..da861232 100644
--- a/smbutil.c
+++ b/smbutil.c
@@ -298,7 +298,7 @@ print_data(const unsigned char *buf, int len)
while (n--)
printf(" ");
- n = SMBMIN(8, i % 16);
+ n = min(8, i % 16);
print_asc(&buf[i - (i % 16)], n);
printf(" ");
n = (i % 16) - n;