we prefer nil over 0, make the example show it.
This commit is contained in:
parent
2f67e21393
commit
8589a591de
1 changed files with 3 additions and 3 deletions
|
@ -256,7 +256,7 @@ use for communications:
|
||||||
.EX
|
.EX
|
||||||
int callkremvax(void)
|
int callkremvax(void)
|
||||||
{
|
{
|
||||||
return dial("kremvax", 0, 0, 0);
|
return dial("kremvax", nil, nil, nil);
|
||||||
}
|
}
|
||||||
.EE
|
.EE
|
||||||
.PP
|
.PP
|
||||||
|
@ -265,7 +265,7 @@ Call the local authentication server:
|
||||||
.EX
|
.EX
|
||||||
int dialauth(char *service)
|
int dialauth(char *service)
|
||||||
{
|
{
|
||||||
return dial(netmkaddr("$auth", 0, service), 0, 0, 0);
|
return dial(netmkaddr("$auth", nil, service), nil, nil, nil);
|
||||||
}
|
}
|
||||||
.EE
|
.EE
|
||||||
.PP
|
.PP
|
||||||
|
@ -307,7 +307,7 @@ bekremvax(void)
|
||||||
/* echo until EOF */
|
/* echo until EOF */
|
||||||
while((n = read(dfd, buf, sizeof(buf))) > 0)
|
while((n = read(dfd, buf, sizeof(buf))) > 0)
|
||||||
write(dfd, buf, n);
|
write(dfd, buf, n);
|
||||||
exits(0);
|
exits(nil);
|
||||||
default:
|
default:
|
||||||
close(lcfd);
|
close(lcfd);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue