Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/menuc Menu 0 does not exist anymore (it is now OPT_N...



details:   https://anonhg.NetBSD.org/src/rev/ff3c04914f41
branches:  trunk
changeset: 452236:ff3c04914f41
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Jun 23 11:31:10 2019 +0000

description:
Menu 0 does not exist anymore (it is now OPT_NOMENU), so emit an empty
menu defintion for it.

diffstat:

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

diffs (28 lines):

diff -r abb9dafc5951 -r ff3c04914f41 usr.bin/menuc/mdb.c
--- a/usr.bin/menuc/mdb.c       Sun Jun 23 11:22:48 2019 +0000
+++ b/usr.bin/menuc/mdb.c       Sun Jun 23 11:31:10 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mdb.c,v 1.52 2019/06/22 20:44:54 christos Exp $        */
+/*     $NetBSD: mdb.c,v 1.53 2019/06/23 11:31:10 martin Exp $  */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -41,7 +41,7 @@
 #include <sys/cdefs.h>
 
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: mdb.c,v 1.52 2019/06/22 20:44:54 christos Exp $");
+__RCSID("$NetBSD: mdb.c,v 1.53 2019/06/23 11:31:10 martin Exp $");
 #endif
 
 
@@ -371,7 +371,8 @@
                (void)fprintf(out_file, "static int num_menus = %d;\n",
                    menu_no);
 
-       (void)fprintf(out_file, "static struct menudesc menu_def[] = {\n");
+       (void)fprintf(out_file, "static struct menudesc menu_def[] = {\n"
+           "\t{ },\n");
        for (i = 1; i < menu_no; i++) {
                (void)fprintf(out_file,
                        "\t{%s,", menus[i]->info->title);



Home | Main Index | Thread Index | Old Index