diff options
author | kientzle <kientzle@FreeBSD.org> | 2004-10-18 04:34:30 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2004-10-18 04:34:30 +0000 |
commit | 920ed4ea1902b86f9fe22eb51f6b8ddb7c934d23 (patch) | |
tree | b988a781109ba0c59f7d0f28c9895e1958f167e4 /lib | |
parent | bc82f1441b839d64b467b8eba61655474f90ba48 (diff) | |
download | FreeBSD-src-920ed4ea1902b86f9fe22eb51f6b8ddb7c934d23.zip FreeBSD-src-920ed4ea1902b86f9fe22eb51f6b8ddb7c934d23.tar.gz |
Use STDERR_FILENO instead of 2, as POSIX intended.
Thanks to: Alfred Perlstein
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libarchive/archive_check_magic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libarchive/archive_check_magic.c b/lib/libarchive/archive_check_magic.c index 6ef38f1..528da5e 100644 --- a/lib/libarchive/archive_check_magic.c +++ b/lib/libarchive/archive_check_magic.c @@ -38,7 +38,7 @@ __FBSDID("$FreeBSD$"); static void errmsg(const char *m) { - write(2, m, strlen(m)); + write(STDERR_FILENO, m, strlen(m)); } static void |