From 11f3fac32cc34ae2b0dd7d12ef6e0ab59690cc4e Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 17 Apr 2011 02:14:26 +0000 Subject: cwfs: remove p9sk1 code, use factotum --- sys/src/cmd/cwfs/net.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys/src/cmd/cwfs/net.c') diff --git a/sys/src/cmd/cwfs/net.c b/sys/src/cmd/cwfs/net.c index b2f2b7272..3cd8f08ca 100644 --- a/sys/src/cmd/cwfs/net.c +++ b/sys/src/cmd/cwfs/net.c @@ -101,10 +101,8 @@ netinit(void) net->dialstr = annstrs[net - netif]; if (net->dialstr == nil) continue; - net->annfd = announce(net->dialstr, net->anndir); - /* /bin/service/tcp564 may already have grabbed the port */ - if (net->annfd < 0) - sysfatal("can't announce %s: %r", net->dialstr); + if((net->annfd = announce(net->dialstr, net->anndir)) < 0) + print("can't announce %s: %r", net->dialstr); print("netinit: announced on %s\n", net->dialstr); } } -- cgit v1.2.3