summaryrefslogtreecommitdiffstats
path: root/src/cmd/venti/srv/httpd.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2007-04-21 20:49:30 +0000
committerrsc <devnull@localhost>2007-04-21 20:49:30 +0000
commit6932098c9fc67a291ff44881c76ab7785873cf09 (patch)
tree615639f813922f7f851224359e546aa3d83a2b35 /src/cmd/venti/srv/httpd.c
parent946b8d7086d5e1aa97e19bac52fc1a416a56110e (diff)
downloadplan9port-6932098c9fc67a291ff44881c76ab7785873cf09.tar.gz
plan9port-6932098c9fc67a291ff44881c76ab7785873cf09.zip
more fixes
Diffstat (limited to 'src/cmd/venti/srv/httpd.c')
-rw-r--r--src/cmd/venti/srv/httpd.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/cmd/venti/srv/httpd.c b/src/cmd/venti/srv/httpd.c
index e71bd436..6b7f20fa 100644
--- a/src/cmd/venti/srv/httpd.c
+++ b/src/cmd/venti/srv/httpd.c
@@ -168,11 +168,6 @@ httpproc(void *v)
if(hparsereq(c, 0) < 0)
break;
- if(c->req.search)
- c->req.searchpairs = hparsequery(c, c->req.search);
- else
- c->req.searchpairs = nil;
-
for(i = 0; i < MaxObjs && objs[i].name[0]; i++){
n = strlen(objs[i].name);
if((objs[i].name[n-1] == '/' && strncmp(c->req.uri, objs[i].name, n) == 0)
@@ -791,7 +786,7 @@ pctdiffgraph(Stats *s, Stats *t, void *va)
}
static long
-div(long a, long b)
+xdiv(long a, long b)
{
if(b == 0)
b++;
@@ -804,7 +799,7 @@ divdiffgraph(Stats *s, Stats *t, void *va)
Arg *a;
a = va;
- return div(t->n[a->index] - s->n[a->index], t->n[a->index2] - s->n[a->index2]);
+ return xdiv(t->n[a->index] - s->n[a->index], t->n[a->index2] - s->n[a->index2]);
}
static long