summaryrefslogtreecommitdiffstats
path: root/newlib/libc/string/swab.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/string/swab.c')
-rw-r--r--newlib/libc/string/swab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/string/swab.c b/newlib/libc/string/swab.c
index 710ec5161..49d61e134 100644
--- a/newlib/libc/string/swab.c
+++ b/newlib/libc/string/swab.c
@@ -27,11 +27,11 @@ void
_DEFUN (swab, (b1, b2, length),
_CONST void *b1 _AND
void *b2 _AND
- ssize_t length)
+ size_t length)
{
const char *from = b1;
char *to = b2;
- ssize_t ptr;
+ size_t ptr;
for (ptr = 1; ptr < length; ptr += 2)
{
char p = from[ptr];