Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/pkg_install/create cast args to strcmp;



details:   https://anonhg.NetBSD.org/src/rev/e7433b9b75c5
branches:  trunk
changeset: 474536:e7433b9b75c5
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jul 10 20:17:21 1999 +0000

description:
cast args to strcmp;

diffstat:

 usr.sbin/pkg_install/create/pl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 72a4a410f59d -r e7433b9b75c5 usr.sbin/pkg_install/create/pl.c
--- a/usr.sbin/pkg_install/create/pl.c  Sat Jul 10 20:04:03 1999 +0000
+++ b/usr.sbin/pkg_install/create/pl.c  Sat Jul 10 20:17:21 1999 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: pl.c,v 1.13 1999/05/30 16:08:25 tron Exp $     */
+/*     $NetBSD: pl.c,v 1.14 1999/07/10 20:17:21 christos Exp $ */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "from FreeBSD Id: pl.c,v 1.11 1997/10/08 07:46:35 charnier Exp";
 #else
-__RCSID("$NetBSD: pl.c,v 1.13 1999/05/30 16:08:25 tron Exp $");
+__RCSID("$NetBSD: pl.c,v 1.14 1999/07/10 20:17:21 christos Exp $");
 #endif
 #endif
 
@@ -69,7 +69,7 @@
 static int
 dircmp(const void *vp1, const void *vp2)
 {
-       return strcmp(vp2, vp1);
+       return strcmp((const char *)vp2, (const char *)vp1);
 }
 
 /* re-order the PLIST_DIR_RM entries into reverse alphabetic order */



Home | Main Index | Thread Index | Old Index