From: Vladimir 'phcoder' Serbinenko Date: Sun, 29 Jan 2012 22:58:42 +0000 (+0100) Subject: * grub-core/lib/posix_wrap/string.h (memchr): New function. X-Git-Tag: 2.00~739 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9079d3ed4e56ff2fb1bf1d6d28cb31595996ad17;p=thirdparty%2Fgrub.git * grub-core/lib/posix_wrap/string.h (memchr): New function. --- diff --git a/ChangeLog b/ChangeLog index b10b7ab50..582daf40d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-01-29 Vladimir Serbinenko + + * grub-core/lib/posix_wrap/string.h (memchr): New function. + 2012-01-29 Vladimir Serbinenko * po/POTFILES.in: Regenerate. diff --git a/grub-core/lib/posix_wrap/string.h b/grub-core/lib/posix_wrap/string.h index 7e18b1a04..77fbe383b 100644 --- a/grub-core/lib/posix_wrap/string.h +++ b/grub-core/lib/posix_wrap/string.h @@ -96,4 +96,10 @@ strcoll (const char *s1, const char *s2) return grub_strcmp (s1, s2); } +static inline void * +memchr (const void *s, int c, size_t n) +{ + return grub_memchr (s, c, n); +} + #endif