summaryrefslogtreecommitdiff
path: root/proto_lldp.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-04-07 13:56:13 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-04-07 13:56:13 +0200
commit87103d95678b0e6c784909e0bc610ed7ae02d2c9 (patch)
treef7980884f3f7d3e272fce6591f8da7aba5245e7d /proto_lldp.c
parent6c5d0caf3b7c099232c1ac428407fbf31287d77a (diff)
netsniff-ng: Explicitely NULL-terminate readlink() result buffer
Commit 6c5d0caf3b7c ("netsniff-ng: Fix process name when sniffing nlmon device") fixed the problem of not NULL-terminating the readlink() result buffer by initializing the entire buffer with '\0'. Switch to the more common and better readable idiom of explicitely writing a NULL byte after the readlink result string to make this more obvious. Also change the buffer size to PATH_MAX. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'proto_lldp.c')
0 files changed, 0 insertions, 0 deletions
m60.dtsi?h=nds-private-remove&id=5db4992d8f040b8d8db0b86d42806e0c417f7ccf&id2=370ebb0ef6255132373ed35d13e7b1d8d2eb7003'>diff)
usbnet: pegasus: Use net_device_stats from struct net_devicends-private-remove
Instead of using a private copy of struct net_device_stats in struct pegasus, use stats from struct net_device. Also remove the now unnecessary .ndo_get_stats function. Cc: Petko Manolov <petkan@nucleusys.com> Cc: linux-usb@vger.kernel.org Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'arch/arm/boot/dts/imx6qdl-dfi-fs700-m60.dtsi')