diff options
author | Michael Knudsen <mk@cvs.openbsd.org> | 2009-11-23 23:08:36 +0000 |
---|---|---|
committer | Michael Knudsen <mk@cvs.openbsd.org> | 2009-11-23 23:08:36 +0000 |
commit | 78b3d0481abcba79662254f2549347ddaf8250e8 (patch) | |
tree | 2484e269780ae7892d6415ec89ccb44c6de197ab /lib/libc | |
parent | 4fd8dcc86a3d8fde52f7b1fbb3700ff74205ee30 (diff) |
Make the code example fit on an 80 char screen without wrapping.
ok guenther (no word from the sunshine girls on the matter, though)
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/directory.3 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/gen/directory.3 b/lib/libc/gen/directory.3 index 85f749ab48c..e87adf24bba 100644 --- a/lib/libc/gen/directory.3 +++ b/lib/libc/gen/directory.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: directory.3,v 1.18 2007/05/31 19:19:28 jmc Exp $ +.\" $OpenBSD: directory.3,v 1.19 2009/11/23 23:08:35 mk Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: November 23 2009 $ .Dt DIRECTORY 3 .Os .Sh NAME @@ -168,7 +168,8 @@ len = strlen(name); dirp = opendir("."); if (dirp) { while ((dp = readdir(dirp)) != NULL) - if (dp->d_namlen == len && !strcmp(dp->d_name, name)) { + if (dp->d_namlen == len && + !strcmp(dp->d_name, name)) { (void)closedir(dirp); return (FOUND); } |