[OpenBIOS] [commit] r744 - in trunk/openbios-devel: include/libc libc

repository service svn at openbios.org
Thu Apr 15 18:42:54 CEST 2010


Author: blueswirl
Date: Thu Apr 15 18:42:54 2010
New Revision: 744
URL: http://tracker.coreboot.org/trac/openbios/changeset/744

Log:
Remove unused bcopy()

Signed-off-by: Blue Swirl <blauwirbel at gmail.com>

Modified:
   trunk/openbios-devel/include/libc/string.h
   trunk/openbios-devel/libc/string.c

Modified: trunk/openbios-devel/include/libc/string.h
==============================================================================
--- trunk/openbios-devel/include/libc/string.h	Thu Apr 15 18:42:51 2010	(r743)
+++ trunk/openbios-devel/include/libc/string.h	Thu Apr 15 18:42:54 2010	(r744)
@@ -40,7 +40,6 @@
 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);

Modified: trunk/openbios-devel/libc/string.c
==============================================================================
--- trunk/openbios-devel/libc/string.c	Thu Apr 15 18:42:51 2010	(r743)
+++ trunk/openbios-devel/libc/string.c	Thu Apr 15 18:42:54 2010	(r744)
@@ -283,28 +283,6 @@
 }
 
 /**
- * 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



More information about the OpenBIOS mailing list