summarylogtreecommitdiffstats
path: root/netkit-telnet-ssl.arch.patch
blob: 61ec8c651bb4a8b07af4a1d5668ebb0014631ac6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
@@ -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);