提交 e2807e67 编写于 作者: S Stefan Tatschner 提交者: 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: NStefan Tatschner <rumpelsepp@sevenbyte.org>
Acked-by: NMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: NJonathan Corbet <corbet@lwn.net>
上级 6a13feb9
......@@ -681,7 +681,7 @@ solution for a couple of reasons:
addr.can_family = AF_CAN;
addr.can_ifindex = ifr.ifr_ifindex;
connect(s, (struct sockaddr *)&addr, sizeof(addr))
connect(s, (struct sockaddr *)&addr, sizeof(addr));
(..)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册