From 6d8049c9724e0f67583df42bc16df3aaaa1e92eb Mon Sep 17 00:00:00 2001 From: blueswirl Date: Thu, 15 Apr 2010 16:42:54 +0000 Subject: [PATCH] Remove unused bcopy() Signed-off-by: Blue Swirl git-svn-id: svn://openbios.org/openbios/trunk/openbios-devel@744 f158a5a8-5612-0410-a976-696ce0be7e32 --- include/libc/string.h | 1 - libc/string.c | 22 ---------------------- 2 files changed, 23 deletions(-) diff --git a/include/libc/string.h b/include/libc/string.h index 330326f..560880a 100644 --- a/include/libc/string.h +++ b/include/libc/string.h @@ -40,7 +40,6 @@ extern size_t strnlen(const char * s, size_t count); extern char *strpbrk(const char * cs,const char * ct); extern char *strsep(char **s, const char *ct); extern void *memset(void * s,int c,size_t count); -extern char *bcopy(const char * src, char * dest, int count); extern void *memcpy(void * dest,const void *src,size_t count); extern void *memmove(void * dest,const void *src,size_t count); extern int memcmp(const void * cs,const void * ct,size_t count); diff --git a/libc/string.c b/libc/string.c index b7f1bd3..e3abeb4 100644 --- a/libc/string.c +++ b/libc/string.c @@ -283,28 +283,6 @@ void * memset(void * s,int c,size_t count) } /** - * bcopy - Copy one area of memory to another - * @src: Where to copy from - * @dest: Where to copy to - * @count: The size of the area. - * - * Note that this is the same as memcpy(), with the arguments reversed. - * memcpy() is the standard, bcopy() is a legacy BSD function. - * - * You should not use this function to access IO space, use memcpy_toio() - * or memcpy_fromio() instead. - */ -char * bcopy(const char * src, char * dest, int count) -{ - char *tmp = dest; - - while (count--) - *tmp++ = *src++; - - return dest; -} - -/** * memcpy - Copy one area of memory to another * @dest: Where to copy to * @src: Where to copy from -- 2.11.4.GIT