diff options
author | rsc <devnull@localhost> | 2005-05-07 22:42:14 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-05-07 22:42:14 +0000 |
commit | 2b6040818e35d57357226212c356ce370c5b5dd0 (patch) | |
tree | a08c0b51770e99dbc80a768f88d6682838c2d77f /src/cmd/auth | |
parent | bb0266fe6137ecd81eea1c74e34723c5a1bc4caf (diff) | |
download | plan9port-2b6040818e35d57357226212c356ce370c5b5dd0.tar.gz plan9port-2b6040818e35d57357226212c356ce370c5b5dd0.tar.bz2 plan9port-2b6040818e35d57357226212c356ce370c5b5dd0.zip |
use full prototypes
Diffstat (limited to 'src/cmd/auth')
-rw-r--r-- | src/cmd/auth/ssh-agent.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/auth/ssh-agent.c b/src/cmd/auth/ssh-agent.c index f8ded13d..beae7efe 100644 --- a/src/cmd/auth/ssh-agent.c +++ b/src/cmd/auth/ssh-agent.c @@ -950,7 +950,7 @@ runmsg(Aconn *a) ek = getmp(&m); mod = getmp(&m); chal = getmp(&m); - if((p = getn(&m, 16)) == nil){ + if((p = (char*)getn(&m, 16)) == nil){ Failchal: mpfree(ek); mpfree(mod); @@ -977,8 +977,8 @@ runmsg(Aconn *a) break; case SSH2_AGENTC_SIGN_REQUEST: - if(getm(&m, &mkey) < 0 - || getm(&m, &mdata) < 0) + if(getm(&m, &mkey) == nil + || getm(&m, &mdata) == nil) goto Failure; flags = get4(&m); if(flags & SSH_AGENT_OLD_SIGNATURE) |