[prev in list] [next in list] [prev in thread] [next in thread]
List: openbios
Subject: [OpenBIOS] [commit] r745 - in trunk/openbios-devel: include/libc
From: repository service <svn () openbios ! org>
Date: 2010-04-15 16:42:57
Message-ID: E1O2S9Z-0001C4-7y () ra ! coresystems ! de
[Download RAW message or body]
Author: blueswirl
Date: Thu Apr 15 18:42:56 2010
New Revision: 745
URL: http://tracker.coreboot.org/trac/openbios/changeset/745
Log:
Remove unused memscan()
Signed-off-by: Blue Swirl <blauwirbel@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:54 2010 (r744)
+++ trunk/openbios-devel/include/libc/string.h Thu Apr 15 18:42:56 2010 (r745)
@@ -43,7 +43,6 @@
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);
-extern void *memscan(void * addr, int c, size_t size);
extern char *strstr(const char * s1,const char * s2);
extern void *memchr(const void *s, int c, size_t n);
Modified: trunk/openbios-devel/libc/string.c
==============================================================================
--- trunk/openbios-devel/libc/string.c Thu Apr 15 18:42:54 2010 (r744)
+++ trunk/openbios-devel/libc/string.c Thu Apr 15 18:42:56 2010 (r745)
@@ -347,28 +347,6 @@
}
/**
- * memscan - Find a character in an area of memory.
- * @addr: The memory area
- * @c: The byte to search for
- * @size: The size of the area.
- *
- * returns the address of the first occurrence of @c, or 1 byte past
- * the area if @c is not found
- */
-void * memscan(void * addr, int c, size_t size)
-{
- unsigned char * p = (unsigned char *) addr;
-
- while (size) {
- if (*p == c)
- return (void *) p;
- p++;
- size--;
- }
- return (void *) p;
-}
-
-/**
* strstr - Find the first substring in a %NUL terminated string
* @s1: The string to be searched
* @s2: The string to search for
--
OpenBIOS http://openbios.org/
Mailinglist: http://lists.openbios.org/mailman/listinfo
Free your System - May the Forth be with you
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic