summaryrefslogtreecommitdiff
path: root/pcap_mm.c
diff options
context:
space:
mode:
authorJoachim Nilsson <troglobit@gmail.com>2019-09-23 09:45:49 +0200
committerTobias Klauser <tklauser@distanz.ch>2019-09-23 10:03:19 +0200
commit29fb845dfcf988110d01c141fdd490163a6f3714 (patch)
treedb16fe9b750da0932baf34d1dd87dfb66db37c0c /pcap_mm.c
parentc5b1ed4446f1da55f474c3eb5196825b19a08a05 (diff)
trafgen: reset errno before calling sscanf in str2mac
When testing trafgen with the following example from the man page the error message "Failed to parse MAC address 11:22:33:44:55:66" is printed. trafgen -o lo --cpus 1 -n 3 '{ eth(da=11:22:33:44:55:66, da[0]=dinc()), tcp() }' Turns out errno was not cleared before str2mac() called sscanf(). Signed-off-by: Joachim Nilsson <troglobit@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'pcap_mm.c')
0 files changed, 0 insertions, 0 deletions
ving this property can be declared const. Done using Coccinelle: @r disable optional_qualifier@ identifier i; position p; @@ static struct target_core_fabric_ops i@p={...}; @ok@ position p; identifier r.i; @@ ( target_register_template(&i@p) | target_unregister_template(&i@p) ) @bad@ position p!={r.p,ok.p}; identifier r.i; @@ i@p @depends on !bad disable optional_qualifier@ identifier r.i; @@ +const struct target_core_fabric_ops i; File size before: drivers/vhost/scsi.o text data bss dec hex filename 18063 2985 40 21088 5260 drivers/vhost/scsi.o File size after: drivers/vhost/scsi.o text data bss dec hex filename 18479 2601 40 21120 5280 drivers/vhost/scsi.o Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'sound/soc/samsung/littlemill.c')