make error messages a little better, use constants in unistd.h
[unix-history] / usr / src / lib / libc / gen / syslog.c
index 9e64993..369cc1b 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)syslog.c   5.31 (Berkeley) %G%";
+static char sccsid[] = "@(#)syslog.c   5.32 (Berkeley) %G%";
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -108,7 +108,7 @@ vsyslog(pri, fmt, ap)
                ++v;
                v->iov_base = "\n";
                v->iov_len = 1;
                ++v;
                v->iov_base = "\n";
                v->iov_len = 1;
-               (void)writev(2, iov, 2);
+               (void)writev(STDERR_FILENO, iov, 2);
        }
 
        /* get connected, output the message to the local logger */
        }
 
        /* get connected, output the message to the local logger */