summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorStefan Tatschner <rumpelsepp@sevenbyte.org>2015-11-09 16:17:09 +0300
committerJonathan Corbet <corbet@lwn.net>2015-11-11 20:04:53 +0300
commite2807e67d58328053dc3b6f4b91033ca4ab21c0d (patch)
tree4c28a52cbf17c3345310e445272c3c06ba166046 /Documentation
parent6a13feb9c82803e2b815eca72fa7a9f5561d7861 (diff)
downloadlinux-e2807e67d58328053dc3b6f4b91033ca4ab21c0d.tar.xz
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: Stefan Tatschner <rumpelsepp@sevenbyte.org> Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/networking/can.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/networking/can.txt b/Documentation/networking/can.txt
index fd1a1aad49a9..957e3a4388a8 100644
--- a/Documentation/networking/can.txt
+++ b/Documentation/networking/can.txt
@@ -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));
(..)