summaryrefslogtreecommitdiff
path: root/sys/src/cmd/ndb/cs.c
diff options
context:
space:
mode:
authorftrvxmtrx <ftrvxmtrx@gmail.com>2016-11-17 02:59:40 +0100
committerftrvxmtrx <ftrvxmtrx@gmail.com>2016-11-17 02:59:40 +0100
commit0930f44febd25c27fb717e7323686e50c4fa0593 (patch)
tree397b0b732b628164fb078bdbe011a6ae453452a2 /sys/src/cmd/ndb/cs.c
parentc0d0f86b14593bbf608284b96920558756a69304 (diff)
cmd: remove a bit of unused stuff
Diffstat (limited to 'sys/src/cmd/ndb/cs.c')
-rw-r--r--sys/src/cmd/ndb/cs.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/sys/src/cmd/ndb/cs.c b/sys/src/cmd/ndb/cs.c
index 33cbe8e87..432008848 100644
--- a/sys/src/cmd/ndb/cs.c
+++ b/sys/src/cmd/ndb/cs.c
@@ -985,19 +985,6 @@ isvalidip(uchar *ip)
return ipcmp(ip, IPnoaddr) != 0 && ipcmp(ip, v4prefix) != 0;
}
-static uchar loopbacknet[IPaddrlen] = {
- 0, 0, 0, 0,
- 0, 0, 0, 0,
- 0, 0, 0xff, 0xff,
- 127, 0, 0, 0
-};
-static uchar loopbackmask[IPaddrlen] = {
- 0xff, 0xff, 0xff, 0xff,
- 0xff, 0xff, 0xff, 0xff,
- 0xff, 0xff, 0xff, 0xff,
- 0xff, 0, 0, 0
-};
-
void
readipinterfaces(void)
{
@@ -1114,7 +1101,6 @@ netinit(int background)
{
char clone[Maxpath];
Network *np;
- static int working;
if(background){
switch(rfork(RFPROC|RFNOTEG|RFMEM|RFNOWAIT)){
@@ -1310,7 +1296,6 @@ ipserv(Network *np, char *name, char *buf, int blen)
char *p;
int alpha = 0;
int restr = 0;
- char port[10];
Ndbtuple *t, *nt;
Ndbs s;
@@ -1321,7 +1306,6 @@ ipserv(Network *np, char *name, char *buf, int blen)
}
/* see if it's numeric or symbolic */
- port[0] = 0;
for(p = name; *p; p++){
if(isdigit(*p))
{}