aqhome: fixed compiler warnings.
This commit is contained in:
@@ -167,7 +167,7 @@ int _handleReadable(GWEN_MSG_ENDPOINT *ep, GWEN_UNUSED GWEN_MSG_ENDPOINT_MGR *em
|
||||
/* complete msg received, add to list */
|
||||
if (!AQH_NodeMsg_IsChecksumValid(msg)) {
|
||||
DBG_ERROR(AQH_LOGDOMAIN, "Invalid checksum, discarding message");
|
||||
GWEN_Text_DumpString(GWEN_Msg_GetBuffer(msg), GWEN_Msg_GetBytesInBuffer(msg), 6);
|
||||
GWEN_Text_DumpString((const char*) GWEN_Msg_GetBuffer(msg), GWEN_Msg_GetBytesInBuffer(msg), 6);
|
||||
GWEN_MsgEndpoint_SetCurrentlyReceivedMsg(ep, NULL);
|
||||
rv=GWEN_MsgEndpoint_DiscardInput(ep);
|
||||
if (rv<0) {
|
||||
@@ -254,11 +254,8 @@ int _openDevice(GWEN_MSG_ENDPOINT *ep)
|
||||
{
|
||||
AQH_MSG_ENDPOINT_TTY *xep;
|
||||
int fd;
|
||||
int status;
|
||||
int i;
|
||||
struct termios options;
|
||||
int rv;
|
||||
int m;
|
||||
|
||||
xep=GWEN_INHERIT_GETDATA(GWEN_MSG_ENDPOINT, AQH_MSG_ENDPOINT_TTY, ep);
|
||||
assert(xep);
|
||||
@@ -336,6 +333,7 @@ int _endMsg(GWEN_MSG_ENDPOINT *ep)
|
||||
{
|
||||
/* TODO: flush before releasing ATTN */
|
||||
_attnHigh(ep);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user