This repository was archived by the owner on Nov 16, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -21,25 +21,25 @@ Hide ONCRPC specific system calls (clnt_xxx(), readdir_1()) from `rls.c`.
2121```
2222main(...)
2323{
24- HANDLER handler[2];
24+ HANDLER handler[2];
2525 ...
26- INIT_HANDLER ( &handler[0] , NULL, NULL);
27- INIT_HANDLER ( &handler[1] , server, "tcp");
28- ...
29- /* local call */
30- local_head = READ_DIR( &handler[0], dir );
26+ INIT_HANDLER ( &handler[0] , NULL, NULL); // handler[0] for local
27+ INIT_HANDLER ( &handler[1] , server, "tcp"); // handler[1] for remote
28+ ...
29+ /* local call */
30+ local_head = READ_DIR( &handler[0], dir );
3131 for ( ; local_head != NULL; local_head = local_head->next) {
3232 printf("ls:%s\n", local_head->name);
33- }
33+ }
3434 /* remote call */
3535 remote_head = READ_DIR( &handler[1], dir);
3636 for ( ; remote_head != NULL; remote_head = remote_head->next) {
3737 printf("rls:%s\n", remote_head->name);
38- }
38+ }
3939 ...
40- DESTROY_HANDLER ( &handler[0] );
41- DESTROY_HANDLER ( &handler[1] );
42- exit(0);
40+ DESTROY_HANDLER ( &handler[0] );
41+ DESTROY_HANDLER ( &handler[1] );
42+ exit(0);
4343}
4444```
4545
You can’t perform that action at this time.
0 commit comments