File: 05_init-static-vars

package info (click to toggle)
netris 0.52-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 504 kB
  • sloc: ansic: 7,657; makefile: 14
file content (15 lines) | stat: -rw-r--r-- 341 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Initialize lostConn and gotEndConn static var in InitNet function

Index: b/inet.c
===================================================================
--- a/inet.c
+++ b/inet.c
@@ -42,6 +42,8 @@ static int isServer, lostConn, gotEndCon
 
 ExtFunc void InitNet(void)
 {
+	lostConn = 0;
+	gotEndConn = 0;
 	AtExit(CloseNet);
 }