From 38cd0f8a9a768e5e103a547192b48b54bb246007 Mon Sep 17 00:00:00 2001 From: superturbocat2001 Date: Tue, 5 Jan 2021 15:29:30 +0000 Subject: [PATCH] - Updated tcp_demo example. git-svn-id: svn://kolibrios.org@8521 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/ktcc/trunk/samples/net/tcpsrv_demo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/develop/ktcc/trunk/samples/net/tcpsrv_demo.c b/programs/develop/ktcc/trunk/samples/net/tcpsrv_demo.c index 51c7ffe384..439b79f90e 100644 --- a/programs/develop/ktcc/trunk/samples/net/tcpsrv_demo.c +++ b/programs/develop/ktcc/trunk/samples/net/tcpsrv_demo.c @@ -8,7 +8,7 @@ char msg2='\0'; int main() { - sockaddr addr={AF_INET4, PORT(23) , 0, 0}; + struct sockaddr addr={AF_INET4, PORT(23) , 0, 0}; int sk1=socket(AF_INET4, SOCK_STREAM, IPPROTO_TCP); printf("Open socket: %d. Error: %d\n",sk1, err_code);