summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-09-08 15:25:41 +0000
committerpfg <pfg@FreeBSD.org>2016-09-08 15:25:41 +0000
commit1a264b6c55be53aa6af99a402a6dd4910a35b2cc (patch)
tree9b95a54d2dba8c22e52edb1f71edfeef3dbbb710
parentdf6118f9f9cb97b8f026464f186ed508b4da082b (diff)
downloadFreeBSD-src-1a264b6c55be53aa6af99a402a6dd4910a35b2cc.zip
FreeBSD-src-1a264b6c55be53aa6af99a402a6dd4910a35b2cc.tar.gz
MFC r303893, r303894:
misc replacements of comma with semicolon when pertinent. Uses of commas instead of a semicolons can easily go undetected. The comma can serve as a statement separator but this shouldn't be abused when statements are meant to be standalone.
-rw-r--r--lib/libpcap/pcap-netmap.c2
-rw-r--r--usr.sbin/ancontrol/ancontrol.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpcap/pcap-netmap.c b/lib/libpcap/pcap-netmap.c
index 309cf63..19af71e 100644
--- a/lib/libpcap/pcap-netmap.c
+++ b/lib/libpcap/pcap-netmap.c
@@ -240,7 +240,7 @@ pcap_netmap_activate(pcap_t *p)
p->linktype = DLT_EN10MB;
p->selectable_fd = p->fd;
p->read_op = pcap_netmap_dispatch;
- p->inject_op = pcap_netmap_inject,
+ p->inject_op = pcap_netmap_inject;
p->setfilter_op = install_bpf_program;
p->setdirection_op = NULL;
p->set_datalink_op = NULL;
diff --git a/usr.sbin/ancontrol/ancontrol.c b/usr.sbin/ancontrol/ancontrol.c
index 4ff32ff..ba2419a 100644
--- a/usr.sbin/ancontrol/ancontrol.c
+++ b/usr.sbin/ancontrol/ancontrol.c
@@ -573,9 +573,9 @@ an_dumpstats(const char *iface)
printf("Management frames transmitted:\t\t\t[ %u ]\n",
stats->an_tx_mgmt_pkts);
printf("Refresh frames received:\t\t\t[ %u ]\n",
- stats->an_rx_refresh_pkts),
+ stats->an_rx_refresh_pkts);
printf("Refresh frames transmitted:\t\t\t[ %u ]\n",
- stats->an_tx_refresh_pkts),
+ stats->an_tx_refresh_pkts);
printf("Poll frames received:\t\t\t\t[ %u ]\n",
stats->an_rx_poll_pkts);
printf("Poll frames transmitted:\t\t\t[ %u ]\n",
OpenPOWER on IntegriCloud