summaryrefslogtreecommitdiff
path: root/sys/man/2
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2020-03-28 20:32:53 -0700
committerOri Bernstein <ori@eigenstate.org>2020-03-28 20:32:53 -0700
commit8589a591dee9ccb46e09fbb5bf6962cabd178f98 (patch)
tree17e7a76de718212434b777a8eb76efbff1ea906c /sys/man/2
parent2f67e21393c25943f25e116fa6912b7d92dbca4e (diff)
we prefer nil over 0, make the example show it.
Diffstat (limited to 'sys/man/2')
-rw-r--r--sys/man/2/dial6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/man/2/dial b/sys/man/2/dial
index f5cb417fb..64354c299 100644
--- a/sys/man/2/dial
+++ b/sys/man/2/dial
@@ -256,7 +256,7 @@ use for communications:
.EX
int callkremvax(void)
{
- return dial("kremvax", 0, 0, 0);
+ return dial("kremvax", nil, nil, nil);
}
.EE
.PP
@@ -265,7 +265,7 @@ Call the local authentication server:
.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 @@ bekremvax(void)
/* echo until EOF */
while((n = read(dfd, buf, sizeof(buf))) > 0)
write(dfd, buf, n);
- exits(0);
+ exits(nil);
default:
close(lcfd);
break;