23 lines
1004 B
Diff
23 lines
1004 B
Diff
|
main-hal.c: In function 'dbus_filter_function':
|
||
|
main-hal.c:553: warning: passing argument 4 of 'dbus_send_reply' makes pointer from integer without a cast
|
||
|
main-hal.c:559: warning: passing argument 4 of 'dbus_send_reply' makes pointer from integer without a cast
|
||
|
================================================================================
|
||
|
--- drivers/main-hal.c
|
||
|
+++ drivers/main-hal.c
|
||
|
@@ -550,13 +550,13 @@
|
||
|
|
||
|
if (b_enable==TRUE) {
|
||
|
if (upsh.instcmd("beeper.enable", NULL) != STAT_INSTCMD_HANDLED) {
|
||
|
- dbus_send_reply(connection, message, DBUS_TYPE_INT32, -1);
|
||
|
+ dbus_send_reply(connection, message, DBUS_TYPE_INT32, (void *)(-1));
|
||
|
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
|
||
|
}
|
||
|
}
|
||
|
else {
|
||
|
if (upsh.instcmd("beeper.disable", NULL) != STAT_INSTCMD_HANDLED) {
|
||
|
- dbus_send_reply(connection, message, DBUS_TYPE_INT32, -1);
|
||
|
+ dbus_send_reply(connection, message, DBUS_TYPE_INT32, (void *)(-1));
|
||
|
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
|
||
|
}
|
||
|
}
|