diff options
author | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | 2016-07-02 15:38:17 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | 2016-07-02 21:56:40 +0200 |
commit | 9de94c9efc3868b93353ae9577f9569516c9a23b (patch) | |
tree | 7297a87a0178703f7af3616dd165c63f8fd6a2e6 | |
parent | 7d43d50523cd44c5dd2cbe9f9222e0d8766ca747 (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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> |