summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/common/memcpy.c5
-rw-r--r--firmware/common/memmove.c3
-rw-r--r--firmware/common/strcat.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/firmware/common/memcpy.c b/firmware/common/memcpy.c
index e9b8e82..b77f273 100644
--- a/firmware/common/memcpy.c
+++ b/firmware/common/memcpy.c
@@ -34,8 +34,7 @@ QUICKREF
#include "config.h"
#include <_ansi.h>
-#include <stddef.h>
-#include <limits.h>
+#include <string.h>
/* Nonzero if either X or Y is not aligned on a "long" boundary. */
#define UNALIGNED(X, Y) \
@@ -47,7 +46,7 @@ QUICKREF
/* How many bytes are copied each iteration of the word copy loop. */
#define LITTLEBLOCKSIZE (sizeof (long))
-/* Threshhold for punting to the byte copier. */
+/* Threshold for punting to the byte copier. */
#define TOO_SMALL(LEN) ((LEN) < BIGBLOCKSIZE)
_PTR
diff --git a/firmware/common/memmove.c b/firmware/common/memmove.c
index 761e9eb..599cbc9 100644
--- a/firmware/common/memmove.c
+++ b/firmware/common/memmove.c
@@ -37,8 +37,7 @@ QUICKREF
#include "config.h"
#include <_ansi.h>
-#include <stddef.h>
-#include <limits.h>
+#include <string.h>
/* Nonzero if either X or Y is not aligned on a "long" boundary. */
#define UNALIGNED(X, Y) \
diff --git a/firmware/common/strcat.c b/firmware/common/strcat.c
index e3366d7..2215295 100644
--- a/firmware/common/strcat.c
+++ b/firmware/common/strcat.c
@@ -1,3 +1,5 @@
+#include <string.h>
+
char *strcat(char *s1,
const char *s2)
{