diff options
author | Michael Brown | 2015-02-16 18:59:11 +0100 |
---|---|---|
committer | Michael Brown | 2015-02-17 00:16:20 +0100 |
commit | 8ee39f7432e63c2382ab3e7d24e234310f4532c9 (patch) | |
tree | 9261fe919a505f8f5d98e288f68ac99a6fd62c3c /src/hci | |
parent | [libc] Remove unused string functions (diff) | |
download | ipxe-8ee39f7432e63c2382ab3e7d24e234310f4532c9.tar.gz ipxe-8ee39f7432e63c2382ab3e7d24e234310f4532c9.tar.xz ipxe-8ee39f7432e63c2382ab3e7d24e234310f4532c9.zip |
[libc] Rewrite string functions
Some of the C library string functions have an unknown provenance.
Reimplement all such functions to avoid potential licensing
uncertainty.
Remove the inline-assembler versions of strlen(), memswap(), and
strncmp(); these save a minimal amount of space (around 40 bytes in
total) and are not performance-critical.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci')
-rw-r--r-- | src/hci/strerror.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hci/strerror.c b/src/hci/strerror.c index 4e97d957..56300b12 100644 --- a/src/hci/strerror.c +++ b/src/hci/strerror.c @@ -75,7 +75,7 @@ static struct errortab * find_closest_error ( int errno ) { * call to strerror(). * */ -const char * strerror ( int errno ) { +char * strerror ( int errno ) { static char errbuf[64]; struct errortab *errortab; |