aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2010-02-26 20:27:08 +0000
committerDavid Howells <dhowells@redhat.com>2010-02-26 20:27:08 +0000
commitc983bb36ffdb0ac6ad8e34f5446971a9be5d8eb1 (patch)
tree7c9a887b6c4e71e9a707ab1240f20199aed61c14
parentc250fbf7dd2b81b0144df44778e143e7038dffde (diff)
downloadkeyutils-c983bb36ffdb0ac6ad8e34f5446971a9be5d8eb1.tar.gz
Fix compiler warnings in request_key.c
Fix the following compiler warnings: request-key.c: In function 'pipe_to_program': request-key.c:714: warning: dereferencing type-punned pointer will break strict-aliasing rules request-key.c:715: warning: dereferencing type-punned pointer will break strict-aliasing rules request-key.c:712: warning: dereferencing pointer 'wfds.89' does break strict-aliasing rules request-key.c:712: note: initialized from here request-key.c:712: warning: dereferencing pointer 'rfds.90' does break strict-aliasing rules request-key.c:712: note: initialized from here Signed-off-by: David Howells <dhowells@redhat.com>
-rw-r--r--keyutils.spec3
-rw-r--r--request-key.c5
2 files changed, 3 insertions, 5 deletions
diff --git a/keyutils.spec b/keyutils.spec
index 4abec01..361bf17 100644
--- a/keyutils.spec
+++ b/keyutils.spec
@@ -89,6 +89,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/*
%changelog
+* Fri Feb 26 2010 David Howells <dhowells@redhat.com>
+- Fix compiler warnings in request-key.
+
* Tue Aug 22 2006 David Howells <dhowells@redhat.com> - 1.2-1
- Remove syscall manual pages (section 2) to man-pages package [BZ 203582]
- Don't write to serial port in debugging script
diff --git a/request-key.c b/request-key.c
index d58479e..4624423 100644
--- a/request-key.c
+++ b/request-key.c
@@ -709,11 +709,6 @@ static void pipe_to_program(char *op,
if (tmp < 0)
error("select failed: %m\n");
- debug("select -> %d r=%x w=%x\n",
- tmp,
- *(unsigned *) (void *) &rfds,
- *(unsigned *) (void *) &wfds);
-
if (TOSTDIN != -1 && FD_ISSET(TOSTDIN, &wfds)) {
tmp = write(TOSTDIN, pc, ninfo);
if (tmp < 0) {