diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-06-04 11:09:58 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-06-04 11:09:58 -0700 |
commit | 5eee24af45b82f1b0b1eb861e9bad612288840b9 (patch) | |
tree | 1f7784a05278136e5add6707d7fe755d259f2379 /savefile.c | |
parent | 94cabd50c3010fa74f79296a4df561d52e68d800 (diff) | |
download | libpcap-5eee24af45b82f1b0b1eb861e9bad612288840b9.tar.gz |
Update variable names and comments to reflect the previous change.
The last argument to pcap_oid_get_request() and pcap_oid_set_request()
is a pointer to the length, not the length itself, so call it lenp
rather than len. Update comments to speak of "*lenp" rather than "len"
being the length.
Diffstat (limited to 'savefile.c')
-rw-r--r-- | savefile.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -169,7 +169,7 @@ sf_getevent(pcap_t *pcap) static int sf_oid_get_request(pcap_t *p, bpf_u_int32 oid _U_, void *data _U_, - size_t *len _U_) + size_t *lenp _U_) { pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "An OID get request cannot be performed on a file"); @@ -178,7 +178,7 @@ sf_oid_get_request(pcap_t *p, bpf_u_int32 oid _U_, void *data _U_, static int sf_oid_set_request(pcap_t *p, bpf_u_int32 oid _U_, const void *data _U_, - size_t *len _U_) + size_t *lenp _U_) { pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "An OID set request cannot be performed on a file"); |