Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen Cosmetic changse.



details:   https://anonhg.NetBSD.org/src/rev/46f34cc2185d
branches:  trunk
changeset: 517885:46f34cc2185d
user:      enami <enami%NetBSD.org@localhost>
date:      Wed Nov 21 00:48:28 2001 +0000

description:
Cosmetic changse.

diffstat:

 lib/libc/gen/scandir.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (53 lines):

diff -r cf3361c12c86 -r 46f34cc2185d lib/libc/gen/scandir.c
--- a/lib/libc/gen/scandir.c    Wed Nov 21 00:47:56 2001 +0000
+++ b/lib/libc/gen/scandir.c    Wed Nov 21 00:48:28 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scandir.c,v 1.20 2001/11/21 00:47:56 enami Exp $       */
+/*     $NetBSD: scandir.c,v 1.21 2001/11/21 00:48:28 enami Exp $       */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)scandir.c  8.3 (Berkeley) 1/2/94";
 #else
-__RCSID("$NetBSD: scandir.c,v 1.20 2001/11/21 00:47:56 enami Exp $");
+__RCSID("$NetBSD: scandir.c,v 1.21 2001/11/21 00:48:28 enami Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -91,7 +91,7 @@
        _DIAGASSERT(namelist != NULL);
 
        if ((dirp = opendir(dirname)) == NULL)
-               return(-1);
+               return (-1);
        if (fstat(dirp->dd_fd, &stb) < 0)
                goto bad;
 
@@ -141,7 +141,7 @@
        if (nitems && dcomp != NULL)
                qsort(names, nitems, sizeof(struct dirent *), dcomp);
        *namelist = names;
-       return(nitems);
+       return (nitems);
 
 bad2:
        while (nitems-- > 0)
@@ -149,7 +149,7 @@
        free(names);
 bad:
        closedir(dirp);
-       return(-1);
+       return (-1);
 }
 
 /*
@@ -164,6 +164,6 @@
        _DIAGASSERT(d1 != NULL);
        _DIAGASSERT(d2 != NULL);
 
-       return(strcmp((*(const struct dirent *const *)d1)->d_name,
+       return (strcmp((*(const struct dirent *const *)d1)->d_name,
            (*(const struct dirent *const *)d2)->d_name));
 }



Home | Main Index | Thread Index | Old Index