diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-06-14 09:25:22 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-06-14 09:25:22 +0000 |
commit | 28e351249e754446ab86c9cdc5bdbe2747cff998 (patch) | |
tree | b222260b53c9d5e477f5cec36319fb36ebabb3bb /sysdeps/generic/memccpy.c | |
parent | 6d525e7a639fa681d82892628b3c6fa1acbf8c93 (diff) | |
download | glibc-28e351249e754446ab86c9cdc5bdbe2747cff998.tar.gz glibc-28e351249e754446ab86c9cdc5bdbe2747cff998.tar.xz glibc-28e351249e754446ab86c9cdc5bdbe2747cff998.zip |
Update.
* sysdeps/generic/strchr.c: Include <memcopy.h> and use reg_char for character to search, to help the compiler. * sysdeps/generic/strchrnul.c: Likewise. * sysdeps/generic/memchr.c: Likewise. * sysdeps/generic/memccpy.c: Likewise. * sysdeps/generic/rawmemchr.c: Likewise. Fix comment. 1999-06-13 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
Diffstat (limited to 'sysdeps/generic/memccpy.c')
-rw-r--r-- | sysdeps/generic/memccpy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/generic/memccpy.c b/sysdeps/generic/memccpy.c index 44a874a954..f7b496de9f 100644 --- a/sysdeps/generic/memccpy.c +++ b/sysdeps/generic/memccpy.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995, 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -17,6 +17,7 @@ Boston, MA 02111-1307, USA. */ #include <string.h> +#include <memcopy.h> #undef __memccpy #undef memccpy @@ -31,7 +32,7 @@ __memccpy (dest, src, c, n) { register const char *s = src; register char *d = dest; - register const int x = (unsigned char) c; + register const reg_char x = (unsigned char) c; register size_t i = n; while (i-- > 0) |