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.
This commit is contained in:
Jeff Johnston 2000-03-08 22:16:06 +00:00
parent f205ea7a03
commit 3072163c0f
3 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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.
Wed Mar 8 00:46:41 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.

View File

@ -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

View File

@ -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];