Source-Changes-HG archive

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

[src/netbsd-1-6]: src/usr.sbin/pkg_install/lib Pull up revision 1.38 (request...



details:   https://anonhg.NetBSD.org/src/rev/4aca1992f0fd
branches:  netbsd-1-6
changeset: 528583:4aca1992f0fd
user:      lukem <lukem%NetBSD.org@localhost>
date:      Tue Jul 23 11:03:21 2002 +0000

description:
Pull up revision 1.38 (requested by lukem; missed as part of ticket #369):
constify.

diffstat:

 usr.sbin/pkg_install/lib/str.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r c32efcaa7a8f -r 4aca1992f0fd usr.sbin/pkg_install/lib/str.c
--- a/usr.sbin/pkg_install/lib/str.c    Tue Jul 23 09:16:32 2002 +0000
+++ b/usr.sbin/pkg_install/lib/str.c    Tue Jul 23 11:03:21 2002 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: str.c,v 1.33.2.2 2002/07/21 04:43:19 lukem Exp $       */
+/*     $NetBSD: str.c,v 1.33.2.3 2002/07/23 11:03:21 lukem Exp $       */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "Id: str.c,v 1.5 1997/10/08 07:48:21 charnier Exp";
 #else
-__RCSID("$NetBSD: str.c,v 1.33.2.2 2002/07/21 04:43:19 lukem Exp $");
+__RCSID("$NetBSD: str.c,v 1.33.2.3 2002/07/23 11:03:21 lukem Exp $");
 #endif
 #endif
 
@@ -136,7 +136,7 @@
 };
 
 /* the tests that are recognised. */
-static test_t   tests[] = {
+static const test_t   tests[] = {
         {      "<=",   2,      LE      },
         {      "<",    1,      LT      },
         {      ">=",   2,      GE      },
@@ -151,7 +151,7 @@
 static int
 mktest(int *op, char *test)
 {
-       test_t  *tp;
+       const test_t *tp;
 
        for (tp = tests ; tp->s ; tp++) {
                if (strncasecmp(test, tp->s, tp->len) == 0) {



Home | Main Index | Thread Index | Old Index