diff options
author | Russ Cox <rsc@swtch.com> | 2012-10-21 12:04:56 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2012-10-21 12:04:56 -0400 |
commit | c5bfba483f4002c539cbeb4087827524dba8d0f8 (patch) | |
tree | a054fb1030f97f36308240d974057449acebcac3 /src/cmd/auth | |
parent | b0ae8a46a0e40773d306906dd0fd9b33832e7086 (diff) | |
download | plan9port-c5bfba483f4002c539cbeb4087827524dba8d0f8.tar.gz plan9port-c5bfba483f4002c539cbeb4087827524dba8d0f8.tar.bz2 plan9port-c5bfba483f4002c539cbeb4087827524dba8d0f8.zip |
silence more warnings
R=rsc
http://codereview.appspot.com/6744056
Diffstat (limited to 'src/cmd/auth')
-rw-r--r-- | src/cmd/auth/factotum/p9cr.c | 2 | ||||
-rw-r--r-- | src/cmd/auth/rsa2any.c | 2 | ||||
-rw-r--r-- | src/cmd/auth/ssh-agent.c | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/auth/factotum/p9cr.c b/src/cmd/auth/factotum/p9cr.c index 0d9c4879..1c3f21e1 100644 --- a/src/cmd/auth/factotum/p9cr.c +++ b/src/cmd/auth/factotum/p9cr.c @@ -65,6 +65,7 @@ p9crclient(Conv *c) res = nil; ret = -1; attr = c->attr; + astype = -1; if(c->proto == &p9cr){ astype = AuthChal; @@ -131,6 +132,7 @@ p9crclient(Conv *c) ret = 0; out: + USED(astype); keyclose(k); if(c->attr != attr) freeattr(attr); diff --git a/src/cmd/auth/rsa2any.c b/src/cmd/auth/rsa2any.c index b593acb5..8538ac38 100644 --- a/src/cmd/auth/rsa2any.c +++ b/src/cmd/auth/rsa2any.c @@ -164,7 +164,6 @@ getdsakey(int argc, char **argv, int needprivate, Attr **pa) char *file, *s, *p; DSApriv *key; Biobuf *b; - int regen; Attr *a; if(argc == 0) @@ -190,7 +189,6 @@ getdsakey(int argc, char **argv, int needprivate, Attr **pa) return nil; } - regen = 0; a = _parseattr(s+4); if(a == nil){ werrstr("empty key"); diff --git a/src/cmd/auth/ssh-agent.c b/src/cmd/auth/ssh-agent.c index eee98675..40516a77 100644 --- a/src/cmd/auth/ssh-agent.c +++ b/src/cmd/auth/ssh-agent.c @@ -973,6 +973,7 @@ runmsg(Aconn *a) case SSH_AGENTC_RSA_CHALLENGE: n = get4(&m); + USED(n); ek = getmp(&m); mod = getmp(&m); chal = getmp(&m); |