diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-08-13 08:15:16 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-08-13 08:15:16 +0200 |
commit | 7f2049b0d5f75fdd6ee868aee9742597b26a2389 (patch) | |
tree | 18c6fd1387ea6d54ab152d319e97c9caec10f8b1 | |
parent | aa3eeb38f95e722238abe5135155d4882613df47 (diff) | |
download | libssh-7f2049b0d5f75fdd6ee868aee9742597b26a2389.tar.gz libssh-7f2049b0d5f75fdd6ee868aee9742597b26a2389.tar.xz libssh-7f2049b0d5f75fdd6ee868aee9742597b26a2389.zip |
include: Add a MIN macro.
-rw-r--r-- | include/libssh/priv.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 1c460f75..43f749bb 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -223,8 +223,9 @@ int decompress_buffer(ssh_session session,ssh_buffer buf, size_t maxlen); /* match.c */ int match_hostname(const char *host, const char *pattern, unsigned int len); - - +#ifndef MIN +#define MIN(a,b) ((a) < (b) ? (a) : (b)) +#endif /** Free memory space */ #define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0) |