diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-01-15 15:40:40 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-01-15 15:40:40 -0800 |
commit | 98e570c4d9708e46033a6545690ced67cca6f0cb (patch) | |
tree | 294a8615347df436b2f83f643c96da2914de4d0f /pcap_geterr.3pcap | |
parent | 228b410ead7038ac1952f2f9771e3e2db634c3de (diff) | |
download | libpcap-98e570c4d9708e46033a6545690ced67cca6f0cb.tar.gz |
Make the second argument to pcap_perror() const.
It's not modified, and if it's not const you'll get compiler warnings in
some cases if you pass it a string literal.
Addresses GitHub libpcap issue #476.
Diffstat (limited to 'pcap_geterr.3pcap')
-rw-r--r-- | pcap_geterr.3pcap | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap_geterr.3pcap b/pcap_geterr.3pcap index ec4f1676..2e99c37d 100644 --- a/pcap_geterr.3pcap +++ b/pcap_geterr.3pcap @@ -28,7 +28,7 @@ pcap_geterr, pcap_perror \- get or print libpcap error message text .LP .ft B char *pcap_geterr(pcap_t *p); -void pcap_perror(pcap_t *p, char *prefix); +void pcap_perror(pcap_t *p, const char *prefix); .ft .fi .SH DESCRIPTION |