diff options
Diffstat (limited to 'man3/cmsg.3')
| -rw-r--r-- | man3/cmsg.3 | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/man3/cmsg.3 b/man3/cmsg.3 index 039efa36a8..ccf8c54856 100644 --- a/man3/cmsg.3 +++ b/man3/cmsg.3 @@ -160,7 +160,7 @@ This code looks for the .B IP_TTL option in a received ancillary buffer: .PP -.RS +.RS 4 .nf struct msghdr msgh; struct cmsghdr *cmsg; @@ -190,9 +190,8 @@ if (cmsg == NULL) { The code below passes an array of file descriptors over a Unix socket using .BR SCM_RIGHTS : .PP -.RS +.RS 4 .nf -.ta 8n 16n 32n struct msghdr msg = {0}; struct cmsghdr *cmsg; int myfds[NUM_FD]; /* Contains the file descriptors to pass. */ @@ -210,7 +209,6 @@ fdptr = (int *) CMSG_DATA(cmsg); memcpy(fdptr, myfds, NUM_FD * sizeof(int)); /* Sum of the length of all control messages in the buffer: */ msg.msg_controllen = cmsg\->cmsg_len; -.ta .fi .RE .SH "SEE ALSO" |
