diff options
author | Richard Jones <rjones@trick.home.annexia.org> | 2009-09-14 15:43:23 +0100 |
---|---|---|
committer | Richard Jones <rjones@trick.home.annexia.org> | 2009-09-14 15:45:50 +0100 |
commit | f9071160c1a5fe21a825398a81ba3ca584892a4e (patch) | |
tree | f6e7eb818e71db759aa7af599bad8807beab2eb8 /fish | |
parent | 22cee80bc2f631703bf417a54ef4e0f0837e921a (diff) | |
download | libguestfs-f9071160c1a5fe21a825398a81ba3ca584892a4e.tar.gz libguestfs-f9071160c1a5fe21a825398a81ba3ca584892a4e.tar.xz libguestfs-f9071160c1a5fe21a825398a81ba3ca584892a4e.zip |
Fix type punning warning about use of CMSG_DATA in Rawhide.
Diffstat (limited to 'fish')
-rw-r--r-- | fish/rc.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -98,7 +98,8 @@ receive_stdout (int s) else { /* Extract the transferred file descriptor from the control data */ - int fd = *(int *)CMSG_DATA (h); + unsigned char *data = CMSG_DATA (h); + int fd = *(int *)data; /* Duplicate the received file descriptor to stdout */ dup2 (fd, STDOUT_FILENO); @@ -146,7 +147,8 @@ send_stdout (int s) msg.msg_controllen = controllen; /* Add STDOUT to the control data */ - *(int *)CMSG_DATA (cmptr) = STDOUT_FILENO; + unsigned char *data = CMSG_DATA (cmptr); + *(int *)data = STDOUT_FILENO; if (sendmsg (s, &msg, 0) != 1) { perror ("sendmsg stdout fd"); |