Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
	* sysdeps/unix/sysv/linux/bits/socket.h (CMSG_ALIGN): Cast result
	of unary ~ to size_t.

	* stdlib/strtod.c: Make gcc shut up about SWAP use.
  • Loading branch information
Ulrich Drepper committed Nov 1, 2000
1 parent a720a3a commit 7c4c1a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
2000-11-01 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/bits/socket.h (CMSG_ALIGN): Cast result
of unary ~ to size_t.

* stdlib/strtod.c: Make gcc shut up about SWAP use.

* sysdeps/i386/fpu/bits/mathinline.h: Add support for builtin
unordered compare functions to gcc 2.97 and up.

Expand Down
4 changes: 2 additions & 2 deletions stdlib/strtod.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ INTERNAL (STRTOF) (nptr, endptr, group LOCALE_PARAM)
numsize += size;
if (cy == 0)
--numsize;
SWAP (psrc, pdest);
(void) SWAP (psrc, pdest);
}
expbit <<= 1;
++ttab;
Expand Down Expand Up @@ -1214,7 +1214,7 @@ INTERNAL (STRTOF) (nptr, endptr, group LOCALE_PARAM)
densize += ttab->arraysize - _FPIO_CONST_OFFSET;
if (cy == 0)
--densize;
SWAP (psrc, pdest);
(void) SWAP (psrc, pdest);
}
}
expbit <<= 1;
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/unix/sysv/linux/bits/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ struct cmsghdr
((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) \
? (struct cmsghdr *) (mhdr)->msg_control : (struct cmsghdr *) NULL)
#define CMSG_ALIGN(len) (((len) + sizeof (size_t) - 1) \
& ~(sizeof (size_t) - 1))
& (size_t) ~(sizeof (size_t) - 1))
#define CMSG_SPACE(len) (CMSG_ALIGN (len) \
+ CMSG_ALIGN (sizeof (struct cmsghdr)))
#define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
Expand Down

0 comments on commit 7c4c1a0

Please sign in to comment.