Commit e2807e67 authored by Stefan Tatschner's avatar Stefan Tatschner Committed by Jonathan Corbet

can-doc: Add missing semicolon to example

The example code for CAN_BCM,

	connect(s, (struct sockaddr *)&addr, sizeof(addr))

lacks a semicolon at the end of the line. This patch adds that
missing semicolon to ensure that the given code snippet actually
compiles.
Signed-off-by: default avatarStefan Tatschner <rumpelsepp@sevenbyte.org>
Acked-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 6a13feb9
...@@ -681,7 +681,7 @@ solution for a couple of reasons: ...@@ -681,7 +681,7 @@ solution for a couple of reasons:
addr.can_family = AF_CAN; addr.can_family = AF_CAN;
addr.can_ifindex = ifr.ifr_ifindex; addr.can_ifindex = ifr.ifr_ifindex;
connect(s, (struct sockaddr *)&addr, sizeof(addr)) connect(s, (struct sockaddr *)&addr, sizeof(addr));
(..) (..)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment