fix compile problem with newer gcc (2.95.3 for me)
This commit is contained in:
parent
5dfc5cc7f6
commit
5a53cd50ca
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* gui/control.cc
|
||||
* $Id: control.cc,v 1.22 2001-06-18 14:11:55 bdenney Exp $
|
||||
* $Id: control.cc,v 1.23 2001-06-19 14:55:34 fries Exp $
|
||||
*
|
||||
* This is code for a text-mode control panel. Note that this file
|
||||
* does NOT include bochs.h. Instead, it does all of its contact with
|
||||
@ -126,7 +126,7 @@ ask_uint (char *prompt, Bit32u min, Bit32u max, Bit32u the_default, Bit32u *out,
|
||||
*out = the_default;
|
||||
return 0;
|
||||
}
|
||||
char *format = (base==10) ? "%d" : "%x";
|
||||
const char *format = (base==10) ? "%d" : "%x";
|
||||
illegal = (1 != sscanf (buffer, format, &n));
|
||||
if (illegal || n<min || n>max) {
|
||||
printf ("Your choice (%s) was not an integer between %u and %u.\n\n",
|
||||
|
Loading…
Reference in New Issue
Block a user