Remove unused variables

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
Claudio Matsuoka committed 2008-05-28 19:24:18 -03:00
1 parent 698c5a1852
commit 04b91da9f9
1 file changed
+1 -4
+1 -4
View File
@@ -143,7 +143,6 @@ int main()
fd_set rfds; fd_set rfds;
int ctl; int ctl;
struct init_request req; struct init_request req;
struct timespec timeout;
#endif #endif
puts("finit-alt " VERSION " (built " __DATE__ " by " WHOAMI ")"); puts("finit-alt " VERSION " (built " __DATE__ " by " WHOAMI ")");
@@ -420,8 +419,6 @@ int main()
#ifdef LISTEN_INITCTL #ifdef LISTEN_INITCTL
mkfifo("/dev/initctl", 0600); mkfifo("/dev/initctl", 0600);
ctl = open("/dev/initctl", O_RDONLY); ctl = open("/dev/initctl", O_RDONLY);
timeout.tv_sec = 0;
timeout.tv_nsec = 100000000;
#endif #endif
while (1) { while (1) {
@@ -435,7 +432,7 @@ int main()
continue; continue;
} }
if (pselect(ctl + 1, &rfds, NULL, NULL, NULL, &nmask) < 0) if (pselect(ctl + 1, &rfds, NULL, NULL, NULL, &nmask) <= 0)
continue; continue;
read(ctl, &req, sizeof (req)); read(ctl, &req, sizeof (req));