diff options
author | smart <smart@cvs.openbsd.org> | 2001-02-16 01:56:59 +0000 |
---|---|---|
committer | smart <smart@cvs.openbsd.org> | 2001-02-16 01:56:59 +0000 |
commit | 5d7d2a3b2ff0776a8771209080ea895d1e1ffa53 (patch) | |
tree | bdb9bf4db9d5654f0bd9c74b528d457dc67f2c89 /lib/libc/sys/write.2 | |
parent | e2de8d6a1ba5bc1f948d3a373a7578caa7c4e6f6 (diff) |
style(9) nit in examples, aaron@ ok
Diffstat (limited to 'lib/libc/sys/write.2')
-rw-r--r-- | lib/libc/sys/write.2 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2 index 860932e0d59..d5b5e6baae4 100644 --- a/lib/libc/sys/write.2 +++ b/lib/libc/sys/write.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: write.2,v 1.21 2000/10/18 05:12:12 aaron Exp $ +.\" $OpenBSD: write.2,v 1.22 2001/02/16 01:56:58 smart Exp $ .\" $NetBSD: write.2,v 1.6 1995/02/27 12:39:43 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -248,7 +248,7 @@ functions conform to Error checks should explicitly test for \-1. Code such as .Bd -literal - while ((nr = write(fd, buf, sizeof buf)) > 0) + while ((nr = write(fd, buf, sizeof(buf))) > 0) .Ed .Pp is not maximally portable, as some platforms allow for @@ -262,7 +262,7 @@ and may appear as a negative number distinct from \-1. Proper loops should use .Bd -literal - while ((nr = write(fd, buf, sizeof buf)) != -1 && nr != 0) + while ((nr = write(fd, buf, sizeof(buf))) != -1 && nr != 0) .Ed .Sh HISTORY The |