summaryrefslogtreecommitdiff
path: root/net/nettest/files/patch-ac
blob: 4ed2ce3e7e95c602b1a1c5d39e0e970f0797c8e1 (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
*** nettestd.c.orig	Thu Nov  5 15:52:58 1992
--- nettestd.c	Mon Oct 20 13:28:06 1997
***************
*** 416,422 ****
  			    )
  			error("setsockopt (IP_OPTIONS)");
  #endif
! 		if (bind(s, (char *)&name, namesize) < 0) {
  			error("bind");
  			exit(1);
  		}
--- 416,422 ----
  			    )
  			error("setsockopt (IP_OPTIONS)");
  #endif
! 		if (bind(s, (struct sockaddr *)&name, namesize) < 0) {
  			error("bind");
  			exit(1);
  		}
***************
*** 447,456 ****
  #endif
  	listen(s, 5);
  
! 	signal(SIGCHLD, dochild);
  	for (;;) {
  		namesize = sizeof(name);
! 		s2 = accept(s, (char *)&name, &namesize);
  		if (s2 < 0) {
  			extern int errno;
  			if (errno == EINTR)
--- 447,456 ----
  #endif
  	listen(s, 5);
  
! 	signal(SIGCHLD, (void *)dochild);
  	for (;;) {
  		namesize = sizeof(name);
! 		s2 = accept(s, (struct sockaddr *)&name, &namesize);
  		if (s2 < 0) {
  			extern int errno;
  			if (errno == EINTR)
***************
*** 723,729 ****
  #endif
  		{
  			namesize = sizeof(name.d_inet);
! 			t = recvfrom(s, data, MAXSIZE, 0, (char *)&name.d_inet,
  				 &namesize);
  		}
  		if (t < 0) {
--- 723,729 ----
  #endif
  		{
  			namesize = sizeof(name.d_inet);
! 			t = recvfrom(s, data, MAXSIZE, 0, (struct sockaddr *)&name.d_inet,
  				 &namesize);
  		}
  		if (t < 0) {