fix clang warnings reported by Tuncer Ayaz
R=rsc http://codereview.appspot.com/6744054
This commit is contained in:
parent
34d629c857
commit
0cfb376070
24 changed files with 586 additions and 588 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue