History

remove useless assignments

Sigrid Solveig Haflínudóttir committed 4 years ago

Commit e7e0ff31 parent b52527e2 files · +3 −5Browse files

Unified · Split

2 files
  1. 9pfs.c +2 −4
  2. lib/auth_rpc.c +1 −1
9pfs.c+2−4
@@ -322,9 +322,8 @@ int · 321 unmodified lines
322322 fsopendir(const char *path, struct fuse_file_info *ffi)
323323 {
324324 FFid *f;
325− FDir *d;
326325
327− if((d = lookupdir(path, GET)) != NULL){
326+ if(lookupdir(path, GET) != NULL){
328327 ffi->fh = (u64int)NULL;
329328 return 0;
330329 }
@@ -622,7 +621,6 @@ addtocache(const char *path) · 291 unmodified lines
622621 FFid *f;
623622 Dir *d;
624623 char *dname;
625− long n;
626624
627625 DPRINT("addtocache %s\n", path);
628626 dname = estrdup(path);
@@ -637,7 +635,7 @@ addtocache(const char *path) · 8 unmodified lines
637635 return NULL;
638636 }
639637 DPRINT("addtocache about to dirread\n");
640− if((n = _9pdirread(f, &d)) < 0){
638+ if(_9pdirread(f, &d) < 0){
641639 free(dname);
642640 return NULL;
643641 }
lib/auth_rpc.c+1−1
@@ -79,7 +79,7 @@ auth_rpc(AuthRpc *rpc, char *verb, void *a, int na) · 78 unmodified lines
7979 memmove(rpc->obuf, verb, l);
8080 rpc->obuf[l] = ' ';
8181 memmove(rpc->obuf+l+1, a, na);
82− if((n=write(rpc->afd, rpc->obuf, l+1+na)) != l+1+na)
82+ if(write(rpc->afd, rpc->obuf, l+1+na) != l+1+na)
8383 return ARrpcfailure;
8484
8585 if((n=read(rpc->afd, rpc->ibuf, AuthRpcMax)) < 0)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t