From 8ee39f7432e63c2382ab3e7d24e234310f4532c9 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 16 Feb 2015 17:59:11 +0000 Subject: [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 --- src/hci/strerror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hci') 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; -- cgit v1.2.3-55-g7522