Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/sysinst Allow for menu 'opt_name' being const ...



details:   https://anonhg.NetBSD.org/src/rev/91bf57223127
branches:  trunk
changeset: 546948:91bf57223127
user:      dsl <dsl%NetBSD.org@localhost>
date:      Fri May 09 12:45:01 2003 +0000

description:
Allow for menu 'opt_name' being const char *.

diffstat:

 distrib/utils/sysinst/util.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 13e4a2e97615 -r 91bf57223127 distrib/utils/sysinst/util.c
--- a/distrib/utils/sysinst/util.c      Fri May 09 12:34:42 2003 +0000
+++ b/distrib/utils/sysinst/util.c      Fri May 09 12:45:01 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: util.c,v 1.90 2003/05/09 12:34:42 lukem Exp $  */
+/*     $NetBSD: util.c,v 1.91 2003/05/09 12:45:01 dsl Exp $    */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -930,8 +930,8 @@
  * Some globals to pass things back from callbacks
  */
 static char zoneinfo_dir[STRSIZE];
-static char *tz_selected;      /* timezonename (relative to share/zoneinfo */
-static char *tz_default;       /* UTC, or whatever /etc/localtime points to */
+static const char *tz_selected;        /* timezonename (relative to share/zoneinfo */
+static const char *tz_default; /* UTC, or whatever /etc/localtime points to */
 static char tz_env[STRSIZE];
 
 /*
@@ -1063,7 +1063,7 @@
 
        free_menu(menu_no);
        for(n=0; n < nfiles; n++)
-               free(tz_menu[n].opt_name);
+               free((void *)tz_menu[n].opt_name);
        free(tz_menu);
 
        signal(SIGALRM, SIG_IGN);



Home | Main Index | Thread Index | Old Index