X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fmeta.c;h=4282a4e6bd7a63d25b42b3cade4cb1d2eb37b433;hp=0089ac827c296500a38667b71fe3453aa6fef9d4;hb=d6b45d005530496e48325a6174ecdd889a17bfc1;hpb=1fbaca31a15a37135d8d1de14c56b0df98a8ba1c diff --git a/src/meta.c b/src/meta.c index 0089ac82..4282a4e6 100644 --- a/src/meta.c +++ b/src/meta.c @@ -1,6 +1,6 @@ /* meta.c -- handle the meta communication - Copyright (C) 2000-2014 Guus Sliepen , + Copyright (C) 2000-2018 Guus Sliepen , 2000-2005 Ivo Timmermans 2006 Scott Lamb @@ -31,7 +31,9 @@ #include "xalloc.h" #ifndef MIN -#define MIN(x, y) (((x)<(y))?(x):(y)) +static ssize_t MIN(ssize_t x, ssize_t y) { + return x < y ? x : y; +} #endif bool send_meta_sptps(void *handle, uint8_t type, const void *buffer, size_t length) {