aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ndb
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2012-10-21 11:25:08 -0400
committerRuss Cox <rsc@swtch.com>2012-10-21 11:25:08 -0400
commit0cfb376070a4bef7b4168a9795e025437e1be79f (patch)
tree9cea2b3befd9183d11ccc0745a81658d5956e4d7 /src/cmd/ndb
parent34d629c8572518afe0a1d5698d7b184938e35a8f (diff)
downloadplan9port-0cfb376070a4bef7b4168a9795e025437e1be79f.tar.gz
plan9port-0cfb376070a4bef7b4168a9795e025437e1be79f.tar.bz2
plan9port-0cfb376070a4bef7b4168a9795e025437e1be79f.zip
fix clang warnings reported by Tuncer Ayaz
R=rsc http://codereview.appspot.com/6744054
Diffstat (limited to 'src/cmd/ndb')
-rwxr-xr-xsrc/cmd/ndb/dblookup.c1
-rwxr-xr-xsrc/cmd/ndb/dns.c4
2 files changed, 1 insertions, 4 deletions
diff --git a/src/cmd/ndb/dblookup.c b/src/cmd/ndb/dblookup.c
index 7da4db54..ca73184a 100755
--- a/src/cmd/ndb/dblookup.c
+++ b/src/cmd/ndb/dblookup.c
@@ -103,6 +103,7 @@ dblookup(char *name, int class, int type, int auth, int ttl)
}
lock(&dblock);
+ rp = nil;
dp = dnlookup(name, class, 1);
if(opendatabase() < 0)
goto out;
diff --git a/src/cmd/ndb/dns.c b/src/cmd/ndb/dns.c
index 5e150b1c..05a5dd45 100755
--- a/src/cmd/ndb/dns.c
+++ b/src/cmd/ndb/dns.c
@@ -517,10 +517,6 @@ rwalk(Job *job, Mfile *mf)
if(job->request.newfid != job->request.fid){
/* clone fid */
- if(job->request.newfid<0){
- err = "clone newfid out of range";
- goto send;
- }
nmf = copyfid(mf, job->request.newfid);
if(nmf == nil){
err = "clone bad newfid";