Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Dec 2008 05:52:01 +0000 (UTC)
From:      Tim Kientzle <kientzle@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r185664 - head/lib/libarchive
Message-ID:  <200812060552.mB65q160084189@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kientzle
Date: Sat Dec  6 05:52:01 2008
New Revision: 185664
URL: http://svn.freebsd.org/changeset/base/185664

Log:
  2 is more portable than STDERR_FILENO

Modified:
  head/lib/libarchive/archive_check_magic.c

Modified: head/lib/libarchive/archive_check_magic.c
==============================================================================
--- head/lib/libarchive/archive_check_magic.c	Sat Dec  6 05:41:25 2008	(r185663)
+++ head/lib/libarchive/archive_check_magic.c	Sat Dec  6 05:52:01 2008	(r185664)
@@ -46,7 +46,7 @@ __FBSDID("$FreeBSD$");
 static void
 errmsg(const char *m)
 {
-	write(STDERR_FILENO, m, strlen(m));
+	write(2, m, strlen(m));
 }
 
 static void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812060552.mB65q160084189>