diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-04-17 02:14:26 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-04-17 02:14:26 +0000 |
commit | 11f3fac32cc34ae2b0dd7d12ef6e0ab59690cc4e (patch) | |
tree | 80588d6158a357148b3a12e4a1575ff85610cedc /sys/src/cmd/cwfs/net.c | |
parent | 0159ee648e182cb6617596bf4f3ff45bf632610b (diff) |
cwfs: remove p9sk1 code, use factotum
Diffstat (limited to 'sys/src/cmd/cwfs/net.c')
-rw-r--r-- | sys/src/cmd/cwfs/net.c | 6 |
1 files changed, 2 insertions, 4 deletions
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); } } |