Sean Farley 7f08f0dd77 Replace the use of warnx() with direct output to stderr using _write().
This reduces the size of a statically-linked binary by approximately 100KB
in a trivial "return (0)" test application.  readelf -S was used to verify
that the .text section was reduced and that using strlen() saved a few
more bytes over using sizeof().  Since the section of code is only called
when environ is corrupt (program bug), I went with fewer bytes over fewer
cycles.

I made minor edits to the submitted patch to make the output resemble
warnx().

Submitted by:	kib bz
Approved by:	wes (mentor)
MFC after:	5 days
2008-02-28 04:09:08 +00:00
..
2005-01-20 09:17:07 +00:00
2008-01-15 18:55:52 +00:00
2005-01-20 09:17:07 +00:00
2005-01-20 09:17:07 +00:00
2007-03-28 04:32:51 +00:00
2007-12-11 20:39:32 +00:00