summaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/syslogd.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 29ede13..c48d5a4 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -68,25 +68,6 @@ static const char syslogd_usage[] =
"\t-O\tSpecify an alternate log file. default=/var/log/messages\n";
-/* try to open up the specified device */
-static int device_open(char *device, int mode)
-{
- int m, f, fd = -1;
-
- m = mode | O_NONBLOCK;
-
- /* Retry up to 5 times */
- for (f = 0; f < 5; f++)
- if ((fd = open(device, m, 0600)) >= 0)
- break;
- if (fd < 0)
- return fd;
- /* Reset original flags. */
- if (m != mode)
- fcntl(fd, F_SETFL, mode);
- return fd;
-}
-
/* print a message to the log file */
static void message(char *fmt, ...)
{