diff options
| -rw-r--r-- | sys/src/9/port/devbridge.c | 4 | ||||
| -rw-r--r-- | sys/src/9/port/netif.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/9/port/devbridge.c b/sys/src/9/port/devbridge.c index fd0b7a45e..baffc70e2 100644 --- a/sys/src/9/port/devbridge.c +++ b/sys/src/9/port/devbridge.c @@ -537,7 +537,7 @@ portbind(Bridge *b, int argc, char *argv[]) dev2 = argv[4]; } else error(usage); - ownhash = atoi(argv[2]); + ownhash = strtoul(argv[2], 0, 0); dev = argv[3]; for(i=0; i<b->nport; i++) { port = b->port[i]; @@ -643,7 +643,7 @@ portunbind(Bridge *b, int argc, char *argv[]) } else error(usage); if(argc == 3) - ownhash = atoi(argv[2]); + ownhash = strtoul(argv[2], 0, 0); else ownhash = 0; for(i=0; i<b->nport; i++) { diff --git a/sys/src/9/port/netif.c b/sys/src/9/port/netif.c index 9df9e40a4..4b818938e 100644 --- a/sys/src/9/port/netif.c +++ b/sys/src/9/port/netif.c @@ -308,7 +308,7 @@ netifwrite(Netif *nif, Chan *c, void *a, long n) qlock(nif); f = nif->f[NETID(c->qid.path)]; if((p = matchtoken(buf, "connect")) != 0){ - type = atoi(p); + type = strtoul(p, 0, 0); if(typeinuse(nif, type)) error(Einuse); f->type = type; |
