Skip to content
This repository was archived by the owner on Nov 16, 2020. It is now read-only.

Commit 0380f2f

Browse files
authored
Update README.md
1 parent 5781e4b commit 0380f2f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

rls_v2/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,25 @@ Hide ONCRPC specific system calls (clnt_xxx(), readdir_1()) from `rls.c`.
2121
```
2222
main(...)
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

0 commit comments

Comments
 (0)