aboutsummaryrefslogtreecommitdiff
path: root/nscd/connections.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-04-26 22:31:19 +0000
committerUlrich Drepper <drepper@redhat.com>2009-04-26 22:31:19 +0000
commit1ac03a1e44079a28f9dd55bfc80b6496618c5147 (patch)
treed7be81fd5657f8f17f33f46a14386a2ce4219a83 /nscd/connections.c
parent6cc8844f1dd985360f662e78ff2272039025635f (diff)
downloadglibc-1ac03a1e44079a28f9dd55bfc80b6496618c5147.zip
glibc-1ac03a1e44079a28f9dd55bfc80b6496618c5147.tar.gz
glibc-1ac03a1e44079a28f9dd55bfc80b6496618c5147.tar.bz2
* nscd/connections.c (send_ro_fd): Define temporary variable to avoid
warning. * elf/sprof.c: Likewise.
Diffstat (limited to 'nscd/connections.c')
-rw-r--r--nscd/connections.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nscd/connections.c b/nscd/connections.c
index 234e289..ca73393 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -1023,7 +1023,8 @@ send_ro_fd (struct database_dyn *db, char *key, int fd)
cmsg->cmsg_type = SCM_RIGHTS;
cmsg->cmsg_len = CMSG_LEN (sizeof (int));
- *(int *) CMSG_DATA (cmsg) = db->ro_fd;
+ int *ip = (int *) CMSG_DATA (cmsg);
+ *ip = db->ro_fd;
msg.msg_controllen = cmsg->cmsg_len;
@@ -1719,6 +1720,7 @@ handle_request: request received (Version = %d)"), req.version);
/* One more thread available. */
++nready;
}
+ /* NOTREACHED */
}