projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/getopt.h: add missing header guard
[tinc]
/
src
/
meta.c
diff --git
a/src/meta.c
b/src/meta.c
index
0089ac8
..
4282a4e
100644
(file)
--- a/
src/meta.c
+++ b/
src/meta.c
@@
-1,6
+1,6
@@
/*
meta.c -- handle the meta communication
/*
meta.c -- handle the meta communication
- Copyright (C) 2000-201
4
Guus Sliepen <guus@tinc-vpn.org>,
+ Copyright (C) 2000-201
8
Guus Sliepen <guus@tinc-vpn.org>,
2000-2005 Ivo Timmermans
2006 Scott Lamb <slamb@slamb.org>
2000-2005 Ivo Timmermans
2006 Scott Lamb <slamb@slamb.org>
@@
-31,7
+31,9
@@
#include "xalloc.h"
#ifndef MIN
#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) {
#endif
bool send_meta_sptps(void *handle, uint8_t type, const void *buffer, size_t length) {