Displaying 2 results from an estimated 2 matches for "outlet_name".
2013 Jul 01
1
bcmxcp: Patch for cosmetic code changes
...rtions(+), 6 deletions(-)
diff --git a/drivers/bcmxcp.c b/drivers/bcmxcp.c
index 2e5f18f..480258c 100644
--- a/drivers/bcmxcp.c
+++ b/drivers/bcmxcp.c
@@ -948,16 +948,16 @@ int init_outlet(unsigned char len)
upsdebugx(2, "Auto delay off: %d\n", auto_dly_off);
snprintf(outlet_name, sizeof(outlet_name)-1,
"outlet.%d.delay.shutdown", num);
dstate_setinfo(outlet_name, "%d", auto_dly_off);
- dstate_setflags(outlet_name, ST_FLAG_RW | ST_FLAG_STRING);
- dstate_setaux(outlet_name, 5);
+ dstate_setflags(outlet_name, ST_FLAG_RW | ST...
2009 Dec 15
2
drivers/bcmxcp.c portability issue
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