diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2000-03-09 22:25:01 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2000-03-09 22:25:01 +0000 |
commit | e9c949781598a0476a6cdb953e5f09442d5ca016 (patch) | |
tree | d9a821eaef7d88bf79ed0772a75281774a489465 /newlib/libc/string/swab.c | |
parent | af1dc7ccea4e312010198981382bd1e33910eccb (diff) | |
download | cygnal-e9c949781598a0476a6cdb953e5f09442d5ca016.tar.gz cygnal-e9c949781598a0476a6cdb953e5f09442d5ca016.tar.bz2 cygnal-e9c949781598a0476a6cdb953e5f09442d5ca016.zip |
Thu Mar 9 17:20:41 2000 Jeff Johnston <jjohnstn@cygnus.com>
* libc/include/string.h: Changed last argument back to ssize_t
to make it compatible with XPG4 definition which is
defined in <unistd.h>. There is a conflict in the SVID 3
and XPG4 definitions and newlib will settle with XPG4.
* libc/string/swab.c: Ditto.
Diffstat (limited to 'newlib/libc/string/swab.c')
-rw-r--r-- | newlib/libc/string/swab.c | 8 |
1 files changed, 4 insertions, 4 deletions
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]; |