Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/include/string.h2
-rw-r--r--newlib/libc/string/swab.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h
index 7ec2dcf34..0707aac16 100644
--- a/newlib/libc/include/string.h
+++ b/newlib/libc/include/string.h
@@ -69,7 +69,7 @@ char *_EXFUN(strupr,(char *));
char *_EXFUN(strsignal, (int __signo));
int _EXFUN(strtosigno, (const char *__name));
#endif
-void _EXFUN(swab,(const void *, void *, size_t));
+void _EXFUN(swab,(const void *, void *, ssize_t));
/* These function names are used on Windows and perhaps other systems. */
#ifndef strcmpi
diff --git a/newlib/libc/string/swab.c b/newlib/libc/string/swab.c
index 49d61e134..98daf5a1a 100644
--- a/newlib/libc/string/swab.c
+++ b/newlib/libc/string/swab.c
@@ -4,13 +4,13 @@ FUNCTION
ANSI_SYNOPSIS
#include <string.h>
- void swab(const void *<[in]>, void *<[out]>, size_t <[n]>);
+ void swab(const void *<[in]>, void *<[out]>, ssize_t <[n]>);
TRAD_SYNOPSIS
void swab(<[in]>, <[out]>, <[n]>
void *<[in]>;
void *<[out]>;
- size_t <[n]>;
+ ssize_t <[n]>;
DESCRIPTION
This function copies <[n]> bytes from the memory region
@@ -27,11 +27,11 @@ void
_DEFUN (swab, (b1, b2, length),
_CONST void *b1 _AND
void *b2 _AND
- size_t length)
+ ssize_t length)
{
const char *from = b1;
char *to = b2;
- size_t ptr;
+ ssize_t ptr;
for (ptr = 1; ptr < length; ptr += 2)
{
char p = from[ptr];