aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <fx.lebail@yahoo.com>2016-07-02 15:38:17 +0200
committerFrancois-Xavier Le Bail <fx.lebail@yahoo.com>2016-07-02 21:56:40 +0200
commit9de94c9efc3868b93353ae9577f9569516c9a23b (patch)
tree7297a87a0178703f7af3616dd165c63f8fd6a2e6
parent7d43d50523cd44c5dd2cbe9f9222e0d8766ca747 (diff)
Fix warnings with 'strlcpy' macro
The warnings were: right-hand operand of comma expression has no effect [-Wunused-value]
-rw-r--r--pcap-int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-int.h b/pcap-int.h
index c5a030f5..1d72adbd 100644
--- a/pcap-int.h
+++ b/pcap-int.h
@@ -368,7 +368,7 @@ int pcap_offline_read(pcap_t *, int, pcap_handler, u_char *);
#define strlcpy(x, y, z) \
(strncpy((x), (y), (z)), \
((z) <= 0 ? 0 : ((x)[(z) - 1] = '\0')), \
- strlen((y)))
+ (void) strlen((y)))
#endif
#include <stdarg.h>