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
322fsopendir(const char *path, struct fuse_file_info *ffi)322fsopendir(const char *path, struct fuse_file_info *ffi)
323{323{
324 FFid *f;324 FFid *f;
325 FDir *d;
326 325
327 if((d = lookupdir(path, GET)) != NULL){326 if(lookupdir(path, GET) != NULL){
328 ffi->fh = (u64int)NULL;327 ffi->fh = (u64int)NULL;
329 return 0;328 return 0;
330 }329 }
@@ -622,7 +621,6 @@ addtocache(const char *path) · 291 unmodified lines
622 FFid *f;621 FFid *f;
623 Dir *d;622 Dir *d;
624 char *dname;623 char *dname;
625 long n;
626 624
627 DPRINT("addtocache %s\n", path);625 DPRINT("addtocache %s\n", path);
628 dname = estrdup(path);626 dname = estrdup(path);
@@ -637,7 +635,7 @@ addtocache(const char *path) · 8 unmodified lines
637 return NULL;635 return NULL;
638 }636 }
639 DPRINT("addtocache about to dirread\n");637 DPRINT("addtocache about to dirread\n");
640 if((n = _9pdirread(f, &d)) < 0){638 if(_9pdirread(f, &d) < 0){
641 free(dname);639 free(dname);
642 return NULL;640 return NULL;
643 }641 }
lib/auth_rpc.c+1−1
@@ -79,7 +79,7 @@ auth_rpc(AuthRpc *rpc, char *verb, void *a, int na) · 78 unmodified lines
79 memmove(rpc->obuf, verb, l);79 memmove(rpc->obuf, verb, l);
80 rpc->obuf[l] = ' ';80 rpc->obuf[l] = ' ';
81 memmove(rpc->obuf+l+1, a, na);81 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)
83 return ARrpcfailure;83 return ARrpcfailure;
84 84
85 if((n=read(rpc->afd, rpc->ibuf, AuthRpcMax)) < 0)85 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