mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Fix signedness warnings in gio/gsocket.c
gio/gsocket.c: In function ‘g_socket_send_message_with_timeout’: gio/gsocket.c:4528:23: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘const unsigned int’} 4528 | for (i = 0; i < _message->num_vectors; i++) \ | ^ gio/gsocket.c: In function ‘g_socket_send_message_with_timeout’: gio/gsocket.c:4543:19: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘const unsigned int’} 4543 | for (i = 0; i < _message->num_control_messages; i++) \ | ^ gio/gsocket.c: In function ‘g_socket_send_messages_with_timeout’: gio/gsocket.c:5133:19: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} 5133 | for (i = 0; i < num_messages; ++i) | ^ gio/gsocket.c:5152:33: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} 5152 | for (num_sent = 0; num_sent < num_messages;) | ^
This commit is contained in:
parent
0705dbd17b
commit
26ec52b9a2
@ -4536,7 +4536,7 @@ G_STMT_START { \
|
||||
else \
|
||||
/* ABI is incompatible */ \
|
||||
{ \
|
||||
gint i; \
|
||||
guint i; \
|
||||
\
|
||||
_msg->msg_iov = g_newa (struct iovec, _message->num_vectors); \
|
||||
for (i = 0; i < _message->num_vectors; i++) \
|
||||
@ -4551,7 +4551,7 @@ G_STMT_START { \
|
||||
/* control */ \
|
||||
{ \
|
||||
struct cmsghdr *cmsg; \
|
||||
gint i; \
|
||||
guint i; \
|
||||
\
|
||||
_msg->msg_controllen = 0; \
|
||||
for (i = 0; i < _message->num_control_messages; i++) \
|
||||
@ -5134,7 +5134,7 @@ g_socket_send_messages_with_timeout (GSocket *socket,
|
||||
#if !defined (G_OS_WIN32) && defined (HAVE_SENDMMSG)
|
||||
{
|
||||
struct mmsghdr *msgvec;
|
||||
gint i, num_sent;
|
||||
guint i, num_sent;
|
||||
|
||||
/* Clamp the number of vectors if more given than we can write in one go.
|
||||
* The caller has to handle short writes anyway.
|
||||
|
Loading…
Reference in New Issue
Block a user