Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Mar 2001 09:54:30 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        "David O'Brien" <obrien@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, "Jordan K. Hubbard" <jkh@FreeBSD.org>
Subject:   Re: cvs commit: src/usr.sbin/sysinstall label.c menus.c
Message-ID:  <XFMail.010324095430.jhb@FreeBSD.org>
In-Reply-To: <20010324092549.A2225@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 24-Mar-01 David O'Brien wrote:
> On Fri, Mar 23, 2001 at 12:06:20AM -0800, Jordan K. Hubbard wrote:
>>   Modified files:
>>     usr.sbin/sysinstall  label.c menus.c 
>>   Log:
>>   Eliminate an old warning brought about by insufficient foresight when
>>   creating
>>   the Menu structure.  Have I ever mentioned that sysinstall really needs to
>>   be rewritten?
> 
> You broke the Alpha build:
> 
> /usr/src/usr.sbin/sysinstall/menus.c:1323: initializer element is not
> computable at load time
> /usr/src/usr.sbin/sysinstall/menus.c:1323: (near initialization for
> `MenuNetworking.items[9].aux')
> 
> Reverting the "(int)" cast fixes the problem.

And is bogus.  Int on the alpha is 32 bits, where as a const char * is 64 bits.
Either libdialog needs to be fixed so that dialog.h defines dialogMenuItem.aux
as a void * rather than a long, or we need to change to having the data field
point to a struct containing a pointer to a string and a pointer to a submenu
and have dmenuVarCheck and dmenuSubmenu (or suitable wrappers) just use the
appropriate pointer from that struct.  This is probably the better solution but
requires more work. :)

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010324095430.jhb>