summaryrefslogtreecommitdiff
path: root/libchill/memmove.c
diff options
context:
space:
mode:
Diffstat (limited to 'libchill/memmove.c')
-rw-r--r--libchill/memmove.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libchill/memmove.c b/libchill/memmove.c
index c5ec992bd84..a64175b0635 100644
--- a/libchill/memmove.c
+++ b/libchill/memmove.c
@@ -26,6 +26,8 @@ Boston, MA 02111-1307, USA. */
This exception does not however invalidate any other reasons why
the executable file might be covered by the GNU General Public License. */
+#include <string.h>
+
#define MIN(a, b) ((a) < (b) ? (a) : (b))
@@ -52,7 +54,7 @@ void *
memmove (s1, s2, n)
void *s1;
const void *s2;
- int n;
+ unsigned int n;
{
char *sc1 = s1;
const char *sc2 = s2;