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;
for(;;){
r = convgetrpc(c, RpcRead);
if(r == nil)
return -1;
break;
}
r = convgetrpc(c, RpcRead);
if(r == nil)
return -1;
rpcrespondn(c, "ok", data, count);
return 0;
}

View file

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

View file

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

View file

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