strace 4.4 net.c:printsock() patch

Richard Kettlewell rkettlewell at zeus.com
Tue Sep 18 05:52:03 UTC 2001


There is a stray "}" emitted for AF_INET address in net.c:printsock()
- stray because one is emitted for all address families at the end of
the function.

This patch removes it.

ttfn/rjk

diff -ruN strace-4.4.orig/net.c strace-4.4/net.c
--- strace-4.4.orig/net.c	Fri Jul 13 23:07:45 2001
+++ strace-4.4/net.c	Tue Sep 18 13:48:28 2001
@@ -628,7 +628,7 @@
 		}
 		break;
 	case AF_INET:
-		tprintf("sin_port=htons(%u), sin_addr=inet_addr(\"%s\")}",
+		tprintf("sin_port=htons(%u), sin_addr=inet_addr(\"%s\")",
 			ntohs(addrbuf.sin.sin_port), inet_ntoa(addrbuf.sin.sin_addr));
 		break;
 #ifdef HAVE_INET_NTOP




More information about the Strace-devel mailing list