mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-31 21:34:12 +02:00
Merge branch '3527-Wshorten-64-to-32' into 'main'
Fix various -Wshorten-64-to-32 warnings See merge request GNOME/glib!4387
This commit is contained in:
@@ -129,7 +129,7 @@ journal_stream_fd (const char *identifier,
|
||||
if (fd < 0)
|
||||
goto fail;
|
||||
|
||||
salen = offsetof (struct sockaddr_un, sun_path) + strlen (sa.un.sun_path) + 1;
|
||||
salen = offsetof (struct sockaddr_un, sun_path) + (socklen_t) strlen (sa.un.sun_path) + 1;
|
||||
|
||||
if (connect (fd, &sa.sa, salen) < 0)
|
||||
goto fail;
|
||||
|
Reference in New Issue
Block a user