From 5eee24af45b82f1b0b1eb861e9bad612288840b9 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 4 Jun 2016 11:09:58 -0700 Subject: 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. --- savefile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'savefile.c') diff --git a/savefile.c b/savefile.c index 2d2c75a2..521f484b 100644 --- a/savefile.c +++ b/savefile.c @@ -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"); -- cgit v1.2.1