aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-04-21 12:52:36 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-04-21 12:52:36 -0400
commita748422ee45725e04e1d3792fa19dfa90ddfd116 (patch)
tree978e12895468baaa9f7ab2747b9f7d50beaf1717 /lib/string.c
parentc63e31c2cc1ec67372920b5e1aff8204d04dd172 (diff)
parentf4ffaa452e71495a06376f12f772342bc57051fc (diff)
Merge branch 'master'
Diffstat (limited to 'lib/string.c')
-rw-r--r--lib/string.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/string.c b/lib/string.c
index b3c28a3f6332..064f6315b1c3 100644
--- a/lib/string.c
+++ b/lib/string.c
@@ -362,6 +362,7 @@ size_t strspn(const char *s, const char *accept)
362EXPORT_SYMBOL(strspn); 362EXPORT_SYMBOL(strspn);
363#endif 363#endif
364 364
365#ifndef __HAVE_ARCH_STRCSPN
365/** 366/**
366 * strcspn - Calculate the length of the initial substring of @s which does 367 * strcspn - Calculate the length of the initial substring of @s which does
367 * not contain letters in @reject 368 * not contain letters in @reject
@@ -384,6 +385,7 @@ size_t strcspn(const char *s, const char *reject)
384 return count; 385 return count;
385} 386}
386EXPORT_SYMBOL(strcspn); 387EXPORT_SYMBOL(strcspn);
388#endif
387 389
388#ifndef __HAVE_ARCH_STRPBRK 390#ifndef __HAVE_ARCH_STRPBRK
389/** 391/**
@@ -403,6 +405,7 @@ char *strpbrk(const char *cs, const char *ct)
403 } 405 }
404 return NULL; 406 return NULL;
405} 407}
408EXPORT_SYMBOL(strpbrk);
406#endif 409#endif
407 410
408#ifndef __HAVE_ARCH_STRSEP 411#ifndef __HAVE_ARCH_STRSEP
@@ -467,7 +470,7 @@ EXPORT_SYMBOL(memset);
467void *memcpy(void *dest, const void *src, size_t count) 470void *memcpy(void *dest, const void *src, size_t count)
468{ 471{
469 char *tmp = dest; 472 char *tmp = dest;
470 char *s = src; 473 const char *s = src;
471 474
472 while (count--) 475 while (count--)
473 *tmp++ = *s++; 476 *tmp++ = *s++;