diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-10-06 11:42:47 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-10-06 11:42:47 +0200 |
commit | cf1aaf14fa2bcb457a306d42723ed91a76df00f1 (patch) | |
tree | 48aad03ac15ab1cc2aaa1cb0f364a604f368d0d1 | |
parent | b26387e6b28630b8e5e3582039141ebf1c7455e3 (diff) | |
download | rsyslog-cf1aaf14fa2bcb457a306d42723ed91a76df00f1.tar.gz rsyslog-cf1aaf14fa2bcb457a306d42723ed91a76df00f1.tar.xz rsyslog-cf1aaf14fa2bcb457a306d42723ed91a76df00f1.zip |
fixed compiler warnings in tcpflood.c
-rw-r--r-- | tests/tcpflood.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tcpflood.c b/tests/tcpflood.c index 49b1e9e6..8485acbb 100644 --- a/tests/tcpflood.c +++ b/tests/tcpflood.c @@ -797,7 +797,7 @@ closeTLSSess(int i) # else /* NO TLS available */ static void initTLS(void) {} static void initTLSSess(int __attribute__((unused)) i) {} -static int sendTLS(int i, char *buf, int lenBuf) { return 0; } +static int sendTLS(int __attribute__((unused)) i, char __attribute__((unused)) *buf, int __attribute__((unused)) lenBuf) { return 0; } static void closeTLSSess(int __attribute__((unused)) i) {} # endif @@ -889,7 +889,8 @@ int main(int argc, char *argv[]) # if defined(ENABLE_GNUTLS) transport = TP_TLS; # else - fprintf(stderr, "compiled without TLS support!\n", optarg); + fprintf(stderr, "compiled without TLS support: " + "\"-Ttls\" not supported!\n"); exit(1); # endif } else { |