diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2005-10-10 17:37:45 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2005-10-10 17:37:45 +0000 |
commit | bb2df7254a0fdad7de4707830e579f3a49e75a91 (patch) | |
tree | 7c45b836538c3ee4feb55f323e3bd389aa2ba137 /lib/libc/gen | |
parent | f160cafd6542803c643c80dda4a634474e9c6b75 (diff) |
fix a few warnings, keep the crypt stuff for later.
okay otto@
Diffstat (limited to 'lib/libc/gen')
-rw-r--r-- | lib/libc/gen/opendir.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/lib/libc/gen/opendir.c b/lib/libc/gen/opendir.c index 00d2cb75746..e407dd4b815 100644 --- a/lib/libc/gen/opendir.c +++ b/lib/libc/gen/opendir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: opendir.c,v 1.14 2005/08/08 08:05:34 espie Exp $ */ +/* $OpenBSD: opendir.c,v 1.15 2005/10/10 17:37:43 espie Exp $ */ /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. @@ -40,22 +40,6 @@ #include <string.h> #include <unistd.h> -static int direntcmp(const void *, const void *); - -/* - * Comparison function for sorting dirent structures that never returns 0; - * this causes qsort() to emulate a stable sort. - */ -static int -direntcmp(const void *d1, const void *d2) -{ - int i; - - i = strcmp((*(struct dirent **)d1)->d_name, - (*(struct dirent **)d2)->d_name); - return (i != 0 ? i : (char *)d2 - (char *)d1); -} - /* * Open a directory. */ |