can-doc: Add missing semicolon to example
authorStefan Tatschner <rumpelsepp@sevenbyte.org>
Mon, 9 Nov 2015 13:17:09 +0000 (14:17 +0100)
committerJonathan Corbet <corbet@lwn.net>
Wed, 11 Nov 2015 17:04:53 +0000 (10:04 -0700)
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: Stefan Tatschner <rumpelsepp@sevenbyte.org>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/networking/can.txt

index fd1a1aad49a9c5251e464cdc382119135c4cdd9b..957e3a4388a8bbe7352fb456b7d02ff24e11b83d 100644 (file)
@@ -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));
 
     (..)