diff options
| author | Alejandro Colomar <alx@kernel.org> | 2023-05-03 00:48:14 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2023-05-03 00:48:22 +0200 |
| commit | fe5dba139dc089eae4061fdc17f087e71f48b198 (patch) | |
| tree | 54af56b1b0138bde9a21e99372ab68ce4d64564a /man3/cmsg.3 | |
| parent | 5a0d9ed151e6449d978fabdd654cacc17b20a235 (diff) | |
| download | man-pages-fe5dba139dc089eae4061fdc17f087e71f48b198.tar.gz | |
man*/, man.ignore.grep: srcfix; warn about blank lines
- Use the dummy character to avoid warnings in examples.
- Re-enable the warning.
Suggested-by: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man3/cmsg.3')
| -rw-r--r-- | man3/cmsg.3 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/man3/cmsg.3 b/man3/cmsg.3 index ee7ba45e0a..c1368b5adb 100644 --- a/man3/cmsg.3 +++ b/man3/cmsg.3 @@ -206,9 +206,9 @@ option in a received ancillary buffer: struct msghdr msgh; struct cmsghdr *cmsg; int received_ttl; - +\& /* Receive auxiliary data in msgh */ - +\& for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL; cmsg = CMSG_NXTHDR(&msgh, cmsg)) { if (cmsg\->cmsg_level == IPPROTO_IP @@ -217,7 +217,7 @@ for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL; break; } } - +\& if (cmsg == NULL) { /* Error: IP_TTL not enabled or small buffer or I/O error */ } @@ -243,7 +243,7 @@ union { /* Ancillary data buffer, wrapped in a union char buf[CMSG_SPACE(sizeof(myfds))]; struct cmsghdr align; } u; - +\& msg.msg_iov = &io; msg.msg_iovlen = 1; msg.msg_control = u.buf; |
