mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 04:22:34 +03:00
merged #242
This commit is contained in:
commit
f2a745a47d
@ -1,6 +1,7 @@
|
||||
2009-02-03 Enrico Weigelt, metux ITS <weigelt@metux.de>
|
||||
|
||||
* lib/mc.lib: added patch on #219 by angel_il
|
||||
* edit/editcmd.c, configure.ac: removed obsolete own implementation of memove (#242)
|
||||
|
||||
2009-02-01 Enrico Weigelt, metux ITS <weigelt@metux.de>
|
||||
|
||||
|
@ -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 \
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user