Fix BSD and Sun problems after coverity fixes

This commit is contained in:
Ulrich Wilkens
2018-05-31 22:47:27 +02:00
committed by Jon Trulson
parent 15fb8cea03
commit 16fbb15ecc
12 changed files with 31 additions and 16 deletions

View File

@@ -554,7 +554,6 @@ esc_P_table[] =
{ '0', '9', &_DtTermStateP, _DtTermEnterNum, /* enter number */ },
{ '|', '|', &_DtTermStateUserKey, _DtTermParseUserKeyClear, /* DECUDK */ },
{ '{', '{', &_DtTermStateDLCharSet, _DtTermPrimParserNextState, },
{ /* down-line-load char set */ },
{ 0x00, 0xFF, &stateStart , _DtTermPrintState /* end of table */ },
};
StateTableRec _DtTermStateP = {False, esc_P_table, pre_parse_table};

View File

@@ -91,9 +91,13 @@ _Tt_rpc_client(int conn_socket)
_program = 0;
_version = 0;
_server_uid = 0;
_clnt_stat = NULL;
_clnt_stat = RPC_SUCCESS;
#if defined(OPT_TLI)
_server_addr = 0;
#else
_server_addr.sin_family = 0;
_server_addr.sin_port = 0;
#endif
}

View File

@@ -49,7 +49,7 @@ _Tt_observer()
_reliability = TT_DISCARD;
_opnum = -1;
_scope = NULL;
_scope = TT_SCOPE_NONE;
_state = TT_STATE_LAST; // BUG This class member is not set anywhere, but a getter function exists
}