mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
comms/x3270: fix -Wincompatible-pointer-types (socklen_t vs size_t)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
COMMENT= IBM 3270 terminal emulator for the X Window System
|
||||
|
||||
DISTNAME= x3270-3.3.6
|
||||
REVISION= 5
|
||||
REVISION= 6
|
||||
CATEGORIES= comms
|
||||
|
||||
HOMEPAGE= http://x3270.bgp.nu/
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
macros.c:652:50: error: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'socklen_t *' (aka 'unsigned int *') [-Wincompatible-pointer-types]
|
||||
|
||||
Index: macros.c
|
||||
--- macros.c.orig
|
||||
+++ macros.c
|
||||
@@ -643,7 +643,7 @@ socket_connection(void)
|
||||
{
|
||||
int fd;
|
||||
struct sockaddr_un ssun;
|
||||
- size_t len = sizeof(ssun);
|
||||
+ socklen_t len = sizeof(ssun);
|
||||
sms_t *s;
|
||||
|
||||
/* Accept the connection. */
|
||||
Reference in New Issue
Block a user