]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Optimize errstr() by reducing the number of times it walks a string.
authorMike Barcroft <mike@FreeBSD.org>
Fri, 3 Jan 2003 16:44:42 +0000 (16:44 +0000)
committerMike Barcroft <mike@FreeBSD.org>
Fri, 3 Jan 2003 16:44:42 +0000 (16:44 +0000)
commite37f8b53130555dfa87abcb3d1acfc9676b44410
treedcc6f1181fe4e0351288beb4d4f7f4524488e537
parent42c43e6031ccea7e2e8c0bd974f882df60731e44
Optimize errstr() by reducing the number of times it walks a string.
As a side effect, it makes the code easier to read and requires less
pointer arithmetic.

Test by: strerror regression test
Submitted by: Tim Kientzle <kientzle@acm.org>
lib/libc/string/strerror.c