appease sun

This commit is contained in:
rsc 2005-03-15 16:11:47 +00:00
parent b3e7c02689
commit 1f8a80722f
4 changed files with 8 additions and 11 deletions

View file

@ -192,12 +192,9 @@ convwrite(Conv *c, void *data, int count)
{ {
Rpc *r; Rpc *r;
for(;;){ r = convgetrpc(c, RpcRead);
r = convgetrpc(c, RpcRead); if(r == nil)
if(r == nil) return -1;
return -1;
break;
}
rpcrespondn(c, "ok", data, count); rpcrespondn(c, "ok", data, count);
return 0; return 0;
} }

View file

@ -114,6 +114,6 @@ Proto httpdigest =
"httpdigest", "httpdigest",
hdroles, hdroles,
"user? realm? !password?", "user? realm? !password?",
nil, 0,
nil 0
}; };

View file

@ -37,5 +37,5 @@ Proto pass =
passroles, passroles,
"user? !password?", "user? !password?",
nil, nil,
nil, nil
}; };

View file

@ -62,7 +62,7 @@ xrsadecrypt(Conv *c)
} }
/* encrypt/decrypt */ /* encrypt/decrypt */
m = betomp(txt, n, nil); m = betomp((uchar*)txt, n, nil);
if(m == nil) if(m == nil)
goto out; goto out;
if(strcmp(role, "decrypt") == 0) if(strcmp(role, "decrypt") == 0)
@ -71,7 +71,7 @@ xrsadecrypt(Conv *c)
mm = rsaencrypt(&key->pub, m, nil); mm = rsaencrypt(&key->pub, m, nil);
if(mm == nil) if(mm == nil)
goto out; goto out;
n = mptobe(mm, buf, sizeof buf, nil); n = mptobe(mm, (uchar*)buf, sizeof buf, nil);
/* send response */ /* send response */
c->state = "write"; c->state = "write";