ref: 8589a591dee9ccb46e09fbb5bf6962cabd178f98
parent: 2f67e21393c25943f25e116fa6912b7d92dbca4e
author: Ori Bernstein <[email protected]>
date: Sat Mar 28 16:32:53 EDT 2020
we prefer nil over 0, make the example show it.
--- a/sys/man/2/dial
+++ b/sys/man/2/dial
@@ -256,7 +256,7 @@
.EX
int callkremvax(void)
{
- return dial("kremvax", 0, 0, 0);
+ return dial("kremvax", nil, nil, nil);
}
.EE
.PP
@@ -265,7 +265,7 @@
.EX
int dialauth(char *service)
{
- return dial(netmkaddr("$auth", 0, service), 0, 0, 0);
+ return dial(netmkaddr("$auth", nil, service), nil, nil, nil);
}
.EE
.PP
@@ -307,7 +307,7 @@
/* echo until EOF */
while((n = read(dfd, buf, sizeof(buf))) > 0)
write(dfd, buf, n);
- exits(0);
+ exits(nil);
default:
close(lcfd);
break;