summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/regerror.c
diff options
context:
space:
mode:
authorscf <scf@FreeBSD.org>2008-02-28 04:09:08 +0000
committerscf <scf@FreeBSD.org>2008-02-28 04:09:08 +0000
commit7ee4756ce96b87edc06d0cde27a17ff060f1a08e (patch)
tree6bc4f5b814c2d60a743517a75f2bdb0cf0984d58 /lib/libc/regex/regerror.c
parentac298b1543e2833beccc87fe8f378dadd9338732 (diff)
downloadFreeBSD-src-7ee4756ce96b87edc06d0cde27a17ff060f1a08e.zip
FreeBSD-src-7ee4756ce96b87edc06d0cde27a17ff060f1a08e.tar.gz
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
Diffstat (limited to 'lib/libc/regex/regerror.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud