aboutsummaryrefslogtreecommitdiff
path: root/pcap-linux.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-01-24 10:08:23 -0800
committerGuy Harris <guy@alum.mit.edu>2019-01-24 10:08:23 -0800
commit1a83bb6703bdcb3f07433521d95b788fa2ab4825 (patch)
tree4495f3377c8797903677a415dab0fdb25bc64e44 /pcap-linux.c
parent87c3b959236479979ec262f69890a10caac7e24f (diff)
No need to pass iface_dsa_get_proto_info() a pointer to an error message buffer.
It's passed a pcap_t *, and should and does fill in the pcap_t's error message buffer.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index aa7a330a..3c7d6710 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -505,8 +505,7 @@ static struct sock_fprog total_fcode
= { 1, &total_insn };
#endif /* SO_ATTACH_FILTER */
-static int iface_dsa_get_proto_info(const char *device, pcap_t *handle,
- char *ebuf);
+static int iface_dsa_get_proto_info(const char *device, pcap_t *handle);
pcap_t *
pcap_create_interface(const char *device, char *ebuf)
@@ -3306,8 +3305,7 @@ static void map_arphrd_to_dlt(pcap_t *handle, int sock_fd, int arptype,
* This is not a Wi-Fi device but it could be
* a DSA master/management network device.
*/
- ret = iface_dsa_get_proto_info(device, handle,
- handle->errbuf);
+ ret = iface_dsa_get_proto_info(device, handle);
if (ret < 0)
return;
@@ -6938,8 +6936,8 @@ static struct dsa_proto {
{ "brcm-prepend", DLT_DSA_TAG_BRCM_PREPEND },
};
-static int iface_dsa_get_proto_info(const char *device, pcap_t *handle,
- char *ebuf)
+static int
+iface_dsa_get_proto_info(const char *device, pcap_t *handle)
{
char *pathstr;
unsigned int i;