diff options
Diffstat (limited to 'man3/cmsg.3')
| -rw-r--r-- | man3/cmsg.3 | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/man3/cmsg.3 b/man3/cmsg.3 index 65c6ad2615..ad55be69aa 100644 --- a/man3/cmsg.3 +++ b/man3/cmsg.3 @@ -143,20 +143,20 @@ 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 - && cmsg->cmsg_type == IP_TTL) { - ttlptr = (int *) CMSG_DATA(cmsg); - received_ttl = *ttlptr; - break; - } + cmsg != NULL; + cmsg = CMSG_NXTHDR(&msgh,cmsg)) { + if (cmsg->cmsg_level == IPPROTO_IP + && cmsg->cmsg_type == IP_TTL) { + ttlptr = (int *) CMSG_DATA(cmsg); + received_ttl = *ttlptr; + break; + } } if (cmsg == NULL) { - /* - * Error: IP_TTL not enabled or small buffer - * or I/O error. - */ + /* + * Error: IP_TTL not enabled or small buffer + * or I/O error. + */ } .ta .fi |
