Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/stand/boot cast a uint8_t * to a char * for a ...



details:   https://anonhg.NetBSD.org/src/rev/1222f88e464b
branches:  trunk
changeset: 766471:1222f88e464b
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Jun 23 12:07:00 2011 +0000

description:
cast a uint8_t * to a char * for a function that takes char *.

diffstat:

 sys/arch/i386/stand/boot/boot2.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f6407e69b2fc -r 1222f88e464b sys/arch/i386/stand/boot/boot2.c
--- a/sys/arch/i386/stand/boot/boot2.c  Thu Jun 23 12:06:32 2011 +0000
+++ b/sys/arch/i386/stand/boot/boot2.c  Thu Jun 23 12:07:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot2.c,v 1.54 2011/05/26 04:25:27 uebayasi Exp $      */
+/*     $NetBSD: boot2.c,v 1.55 2011/06/23 12:07:00 mrg Exp $   */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -356,7 +356,7 @@
                        bootmenu(); /* does not return */
                    } else {
                        /* DO ask for password */
-                       if (check_password(boot_params.bp_password)) {
+                       if (check_password((char *)boot_params.bp_password)) {
                            /* password ok */
                            printf("type \"?\" or \"help\" for help.\n");
                            bootmenu(); /* does not return */



Home | Main Index | Thread Index | Old Index