diff options
Diffstat (limited to 'lib/libnet/libnet.code')
-rw-r--r-- | lib/libnet/libnet.code | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/lib/libnet/libnet.code b/lib/libnet/libnet.code index ab67fac..3602543 100644 --- a/lib/libnet/libnet.code +++ b/lib/libnet/libnet.code @@ -2,20 +2,15 @@ #include <netapps.h> PRIM(NET_X2d_LOAD) - int slen = TOS.n; POP; - char *arg = TOS.a; - char *argvs[8]; - int i, p; - argvs[0] = arg; - i = 1; - for (p = 0; p < slen; p++) { - if (arg[p] == ' ') { - arg[p] = 0; - argvs[i] = &arg[p + 1]; - i++; - } - } - TOS.n = netboot(i, argvs); + int alen = TOS.n; POP; + char *arg = TOS.a; POP; + int blocksize = TOS.n; POP; + int hugeload = TOS.n; POP; + void *replybuf = TOS.a; POP; + long maxlen = TOS.n; POP; + void *loadaddr = TOS.a; + TOS.n = netload(loadaddr, maxlen, replybuf, hugeload, blocksize, + arg, alen); MIRP PRIM(NET_X2d_PING) |