From 5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 19 May 2008 09:48:17 +0000 Subject: - use STD*_FILENO some more. No object-code changes --- runit/svlogd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runit') diff --git a/runit/svlogd.c b/runit/svlogd.c index db3d4c5..bfb9716 100644 --- a/runit/svlogd.c +++ b/runit/svlogd.c @@ -748,7 +748,7 @@ static int buffer_pread(/*int fd, */char *s, unsigned len) poll(&input, 1, i * 1000); sigprocmask(SIG_BLOCK, &blocked_sigset, NULL); - i = ndelay_read(0, s, len); + i = ndelay_read(STDIN_FILENO, s, len); if (i >= 0) break; if (errno == EINTR) @@ -994,7 +994,7 @@ int svlogd_main(int argc, char **argv) logmatch(ld); if (ld->matcherr == 'e') { /* runit-1.8.0 compat: if timestamping, do it on stderr too */ - ////full_write(2, printptr, printlen); + ////full_write(STDERR_FILENO, printptr, printlen); fwrite(printptr, 1, printlen, stderr); } if (ld->match != '+') continue; @@ -1022,7 +1022,7 @@ int svlogd_main(int argc, char **argv) for (i = 0; i < dirn; ++i) { if (dir[i].fddir == -1) continue; if (dir[i].matcherr == 'e') { - ////full_write(2, lineptr, linelen); + ////full_write(STDERR_FILENO, lineptr, linelen); fwrite(lineptr, 1, linelen, stderr); } if (dir[i].match != '+') continue; -- cgit v1.1