Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/menuc Re-instate last change, the sysinst I've just ...



details:   https://anonhg.NetBSD.org/src/rev/6d4fd8b5e9d6
branches:  trunk
changeset: 547305:6d4fd8b5e9d6
user:      dsl <dsl%NetBSD.org@localhost>
date:      Fri May 16 19:57:22 2003 +0000

description:
Re-instate last change, the sysinst I've just commited doesn't stand
a chance unless those fields are const char *.

diffstat:

 usr.bin/menuc/mdb.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3e53dbe3727a -r 6d4fd8b5e9d6 usr.bin/menuc/mdb.c
--- a/usr.bin/menuc/mdb.c       Fri May 16 19:48:29 2003 +0000
+++ b/usr.bin/menuc/mdb.c       Fri May 16 19:57:22 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mdb.c,v 1.28 2003/05/09 12:07:53 lukem Exp $   */
+/*     $NetBSD: mdb.c,v 1.29 2003/05/16 19:57:22 dsl Exp $     */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -166,7 +166,7 @@
                "struct menudesc;\n"    
                "typedef\n"
                "struct menu_ent {\n"
-               "       char           *opt_name;\n"
+               "       const char      *opt_name;\n"
                "       int             opt_menu;\n"
                "       int             opt_flags;\n"
                "       int             (*opt_action)(struct menudesc *);\n"
@@ -177,7 +177,7 @@
                "#define OPT_NOMENU     -1\n\n"
                "typedef\n"
                "struct menudesc {\n"
-               "       char           *title;\n"
+               "       const char      *title;\n"
                "       int             y, x;\n"
                "       int             h, w;\n"
                "       int             mopt;\n"



Home | Main Index | Thread Index | Old Index