summaryrefslogtreecommitdiff
path: root/includes.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-08-26 13:16:40 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-08-26 13:16:40 +0000
commit42a73d4e45f8ae729434a040a3fae921b74d248f (patch)
tree30a6f39236a025b53a33c3893c96e1669e5b7563 /includes.h
parent005dbf4d4c7dbb99fdac19aebe92a9244e841992 (diff)
downloaddropbear-42a73d4e45f8ae729434a040a3fae921b74d248f.tar.gz
- added circular buffering for channels
- added stderr support for the client - cleaned up a bunch of "unused" warnings, duplicated header definitions - added exit-status support for the client
Diffstat (limited to 'includes.h')
-rw-r--r--includes.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/includes.h b/includes.h
index b37422b..ceeb561 100644
--- a/includes.h
+++ b/includes.h
@@ -128,4 +128,14 @@ typedef u_int16_t uint16_t;
#define LOG_AUTHPRIV LOG_AUTH
#endif
+/* so we can avoid warnings about unused params (ie in signal handlers etc) */
+#ifdef UNUSED
+#elif defined(__GNUC__)
+# define UNUSED(x) UNUSED_ ## x __attribute__((unused))
+#elif defined(__LCLINT__)
+# define UNUSED(x) /*@unused@*/ x
+#else
+# define UNUSED(x) x
+#endif
+
#endif /* _INCLUDES_H_ */