summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-07-08 14:57:45 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-07-21 23:47:00 -0700
commit669d0729fbe3c6a6fc33b448789e5512f70468e8 (patch)
tree45b05afec6cc539a57d0c012cf25f54960c3c3c7
parent8296cb21cf22938cfc5274b70b9bedee9c175951 (diff)
Move debug statement before panic() call, so it can actually run
Fixes compiler warning: "fd.c", line 481: warning: statement not reached Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fd.c b/fd.c
index 00a68a2..8b85460 100644
--- a/fd.c
+++ b/fd.c
@@ -477,8 +477,8 @@ MainLoop(void)
if (FD_ISSET(fd, &rfds)) {
if (FDD[fd].InputHandler == NULL) {
- panic("FD selected with no handler");
debug(1, (stderr, "FD %d has NULL handler\n", fd));
+ panic("FD selected with no handler");
}
else
(FDD[fd].InputHandler) (fd);