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
[email protected]



_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev

Reply via email to