From 1f8a80722f44d9c24c4a48d21a944947c9a34b96 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 15 Mar 2005 16:11:47 +0000 Subject: appease sun --- src/cmd/auth/factotum/conv.c | 9 +++------ src/cmd/auth/factotum/httpdigest.c | 4 ++-- src/cmd/auth/factotum/pass.c | 2 +- src/cmd/auth/factotum/rsa.c | 4 ++-- 4 files changed, 8 insertions(+), 11 deletions(-) (limited to 'src/cmd/auth') diff --git a/src/cmd/auth/factotum/conv.c b/src/cmd/auth/factotum/conv.c index 862993f9..a39abff5 100644 --- a/src/cmd/auth/factotum/conv.c +++ b/src/cmd/auth/factotum/conv.c @@ -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; } diff --git a/src/cmd/auth/factotum/httpdigest.c b/src/cmd/auth/factotum/httpdigest.c index 70815a56..4f05b6d6 100644 --- a/src/cmd/auth/factotum/httpdigest.c +++ b/src/cmd/auth/factotum/httpdigest.c @@ -114,6 +114,6 @@ Proto httpdigest = "httpdigest", hdroles, "user? realm? !password?", - nil, - nil + 0, + 0 }; diff --git a/src/cmd/auth/factotum/pass.c b/src/cmd/auth/factotum/pass.c index 9c6c7341..453045ce 100644 --- a/src/cmd/auth/factotum/pass.c +++ b/src/cmd/auth/factotum/pass.c @@ -37,5 +37,5 @@ Proto pass = passroles, "user? !password?", nil, - nil, + nil }; diff --git a/src/cmd/auth/factotum/rsa.c b/src/cmd/auth/factotum/rsa.c index 943ea67b..a865810d 100644 --- a/src/cmd/auth/factotum/rsa.c +++ b/src/cmd/auth/factotum/rsa.c @@ -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"; -- cgit v1.2.3