summaryrefslogtreecommitdiff
path: root/appl/cmd/ip
diff options
context:
space:
mode:
authorCharles Forsyth <charles.forsyth@gmail.com>2015-04-29 17:44:33 +0100
committerCharles Forsyth <charles.forsyth@gmail.com>2015-04-29 17:44:33 +0100
commitfbc1184c08d18d5ac0f8763a058e015e95353341 (patch)
treef045cdfaaf13c35295d34cb0c2ffd7f4cf2ef30d /appl/cmd/ip
parent83eae27259078c96c074211a51bf38c774490544 (diff)
switch to Dial module
Diffstat (limited to 'appl/cmd/ip')
-rw-r--r--appl/cmd/ip/virgild.b8
1 files changed, 6 insertions, 2 deletions
diff --git a/appl/cmd/ip/virgild.b b/appl/cmd/ip/virgild.b
index 5e44476e..79c3b24b 100644
--- a/appl/cmd/ip/virgild.b
+++ b/appl/cmd/ip/virgild.b
@@ -5,6 +5,9 @@ sys: Sys;
include "draw.m";
+include "dial.m";
+dial: Dial;
+
include "ip.m";
Virgild: module
@@ -19,6 +22,7 @@ Udphdrsize: con IP->Udphdrlen;
init(nil: ref Draw->Context, nil: list of string)
{
sys = load Sys Sys->PATH;
+ dial = load Dial Dial->PATH;
stderr = sys->fildes(2);
@@ -66,8 +70,8 @@ init(nil: ref Draw->Context, nil: list of string)
openlisten(): ref Sys->FD
{
- (ok, c) := sys->announce("udp!*!virgil");
- if(ok < 0){
+ c := dial->announce("udp!*!virgil");
+ if(c == nil){
sys->fprint(stderr, "virgild: can't open port: %r\n");
return nil;
}