tappease sun - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 1f8a80722f44d9c24c4a48d21a944947c9a34b96
(DIR) parent b3e7c02689557df3c65103a87ac3458ee003422f
(HTM) Author: rsc <devnull@localhost>
Date: Tue, 15 Mar 2005 16:11:47 +0000
appease sun
Diffstat:
M src/cmd/auth/factotum/conv.c | 9 +++------
M src/cmd/auth/factotum/httpdigest.c | 4 ++--
M src/cmd/auth/factotum/pass.c | 2 +-
M src/cmd/auth/factotum/rsa.c | 4 ++--
4 files changed, 8 insertions(+), 11 deletions(-)
---
(DIR) diff --git a/src/cmd/auth/factotum/conv.c b/src/cmd/auth/factotum/conv.c
t@@ -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;
}
(DIR) diff --git a/src/cmd/auth/factotum/httpdigest.c b/src/cmd/auth/factotum/httpdigest.c
t@@ -114,6 +114,6 @@ Proto httpdigest =
"httpdigest",
hdroles,
"user? realm? !password?",
- nil,
- nil
+ 0,
+ 0
};
(DIR) diff --git a/src/cmd/auth/factotum/pass.c b/src/cmd/auth/factotum/pass.c
t@@ -37,5 +37,5 @@ Proto pass =
passroles,
"user? !password?",
nil,
- nil,
+ nil
};
(DIR) diff --git a/src/cmd/auth/factotum/rsa.c b/src/cmd/auth/factotum/rsa.c
t@@ -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)
t@@ -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";