diff options
author | 2009-11-23 23:08:35 +0000 | |
---|---|---|
committer | 2009-11-23 23:08:35 +0000 | |
commit | 0d1e3dc60dddaeeb735d12bf092ed5cbaaa6207a (patch) | |
tree | a682a734d68132809eb086cd131c3916ae3fe8a9 /lib | |
parent | some whitespace cleanups. (diff) | |
download | wireguard-openbsd-0d1e3dc60dddaeeb735d12bf092ed5cbaaa6207a.tar.xz wireguard-openbsd-0d1e3dc60dddaeeb735d12bf092ed5cbaaa6207a.zip |
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')
-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); } |