summarylogtreecommitdiffstats
path: root/netkit-telnet-ssl.gcc7.patch
blob: cde6fd6e8def08655df3d6ead9d2350f5c498a94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Only in netkit-telnet-0.17/telnetd: telnetd
diff -ru netkit-telnet-0.17.orig/telnetd/utility.c netkit-telnet-0.17/telnetd/utility.c
--- netkit-telnet-0.17.orig/telnetd/utility.c	2017-09-05 08:20:17.150075017 +0300
+++ netkit-telnet-0.17/telnetd/utility.c	2017-09-05 08:35:37.659899201 +0300
@@ -39,6 +39,7 @@
 
 #define PRINTOPTIONS
 
+#define _GNU_SOURCE
 #include <stdarg.h>
 #include <sys/utsname.h>
 #include <sys/time.h>
@@ -55,7 +56,7 @@
 	size_t len;
 };
 
-static struct buflist head = { next: &head, buf: 0, len: 0 };
+static struct buflist head = { .next = &head, .buf = 0, .len = 0 };
 static struct buflist *tail = &head;
 static size_t skip;
 static int trailing;
@@ -1347,7 +1348,7 @@
 void
 netopen() {
 	static const cookie_io_functions_t funcs = {
-		read: 0, write: netwrite, seek: 0, close: 0
+		.read = 0, .write = netwrite, .seek = 0, .close = 0
 	};
 
 	netfile = fopencookie(0, "w", funcs);
Only in netkit-telnet-0.17/telnetd: utility.o