diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2000-03-09 01:16:06 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2000-03-09 01:16:06 +0300 |
commit | 3072163c0fc1304bfa93ba950d8747c8456fca05 (patch) | |
tree | 4d6e64651d6daed5ac7b92f2c54d8c49b26a21d3 /newlib/libc | |
parent | f205ea7a0364b878d07f267286853060fa519007 (diff) |
Wed Mar 8 17:11:41 2000 Jeff Johnston <jjohnstn@cygnus.com>
* libc/include/string.h: Changed last argument to size_t.
* libc/string/swab.c: Changed last argument to size_t.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/include/string.h | 2 | ||||
-rw-r--r-- | newlib/libc/string/swab.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h index 0707aac16..7ec2dcf34 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 *, ssize_t)); +void _EXFUN(swab,(const void *, void *, size_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 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]; |