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-10-02 22:14:44 -0700
commit29ec5378ff7eae6b14a49347008ea35db069b936 (patch)
tree8f6c56cb94efa21e2764ac9cf7ed289e7543ccad
parent36ddba4f6f916eabfc94a22cf7845221f1d4a3cb (diff)
downloadxscope-29ec5378ff7eae6b14a49347008ea35db069b936.tar.gz
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 c026b0f..b6cea42 100644
--- a/fd.c
+++ b/fd.c
@@ -480,8 +480,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);