removed obsolete own memmove implementation (#242)

This commit is contained in:
Enrico Weigelt, metux IT service 2009-02-03 19:51:01 +01:00
parent 9b9cab5874
commit 463a18623d
4 changed files with 5 additions and 27 deletions

View File

@ -1,3 +1,7 @@
2009-02-03 Enrico Weigelt, metux ITS <weigelt@metux.de>
* edit/editcmd.c, configure.ac: removed obsolete own implementation of memove (#242)
2009-02-01 Enrico Weigelt, metux ITS <weigelt@metux.de>
* src/util.c: fixed name_trunc() on NULL or empty parameters

View File

@ -176,7 +176,7 @@ AC_CHECK_FUNCS([\
cfgetospeed \
getegid geteuid getgid getsid getuid \
initgroups isascii \
memcpy memmove memset \
memcpy memset \
putenv \
setreuid setuid statfs strerror strftime sysconf \
tcgetattr tcsetattr truncate \

View File

@ -101,28 +101,6 @@ strcasechr (const char *s, int c)
return s;
}
#ifndef HAVE_MEMMOVE
/* for Christophe */
static void *memmove (void *dest, const void *src, size_t n)
{
char *t;
const char *s;
if (dest <= src) {
t = (char *) dest;
s = (const char *) src;
while (n--)
*t++ = *s++;
} else {
t = (char *) dest + n;
s = (const char *) src + n;
while (n--)
*--t = *--s;
}
return dest;
}
#endif /* !HAVE_MEMMOVE */
/* #define itoa MY_itoa <---- this line is now in edit.h */
static char *
MY_itoa (int i)

View File

@ -647,10 +647,6 @@ extern int errno;
char *strdup(const char *s);
#endif
#ifndef HAVE_MEMMOVE
void *memmove(void *dest,const void *src,int size);
#endif
#ifndef HAVE_INITGROUPS
int initgroups(char *name,gid_t id);
#endif