diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-09-09 21:46:08 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-09-09 21:46:08 -0400 |
commit | f19009c1551a396ee8eff96a83254243ce25a090 (patch) | |
tree | 0983371068093a21a21e4f8c0cfa4756a95103eb /sysdeps/unix/sysv/linux/sparc | |
parent | 3f8cc204fdd077da66ffc8e9595158b469e2b8e5 (diff) | |
download | glibc-f19009c1551a396ee8eff96a83254243ce25a090.tar.gz glibc-f19009c1551a396ee8eff96a83254243ce25a090.tar.xz glibc-f19009c1551a396ee8eff96a83254243ce25a090.zip |
Use (void*) instead of 0 for return value pointer in __cmsg_nexthdr
Diffstat (limited to 'sysdeps/unix/sysv/linux/sparc')
-rw-r--r-- | sysdeps/unix/sysv/linux/sparc/bits/socket.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/sparc/bits/socket.h b/sysdeps/unix/sysv/linux/sparc/bits/socket.h index 5f85d2170d..c7ef5d896a 100644 --- a/sysdeps/unix/sysv/linux/sparc/bits/socket.h +++ b/sysdeps/unix/sysv/linux/sparc/bits/socket.h @@ -318,7 +318,7 @@ __NTH (__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg)) { if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr)) /* The kernel header does this so there may be a reason. */ - return 0; + return (void *) 0; __cmsg = (struct cmsghdr *) ((unsigned char *) __cmsg + CMSG_ALIGN (__cmsg->cmsg_len)); @@ -327,7 +327,7 @@ __NTH (__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg)) || ((unsigned char *) __cmsg + CMSG_ALIGN (__cmsg->cmsg_len) > ((unsigned char *) __mhdr->msg_control + __mhdr->msg_controllen))) /* No more entries. */ - return 0; + return (void *) 0; return __cmsg; } #endif /* Use `extern inline'. */ |