[Nut-upsdev] drivers/bcmxcp.c portability issue
Tim Rice
tim at multitalents.net
Tue Dec 15 02:29:06 UTC 2009
I ran into a portability issue with drivers/bcmxcp.c in nut-2.4.1 on
my UnixWare 7.1.4 machine. The error I get is
.....
UX:acomp: ERROR: "/opt/src/utils/nut-2.4.1/drivers/bcmxcp.c", line 835: integral constant expression expected
.....
Looking at the code we see
.....
int init_outlet(unsigned char len)
{
unsigned char answer[len];
.....
Although gcc can handle it, it's not portable C code.
What size should the answer array be?
Thanks.
--
Tim Rice Multitalents (707) 887-1469
tim at multitalents.net
More information about the Nut-upsdev
mailing list