Added and fixed extra compiler warnings

This commit is contained in:
Andreas Eversberg
2016-10-07 08:55:18 +02:00
parent 8ef966aa21
commit 27938d111e
31 changed files with 90 additions and 89 deletions

View File

@@ -525,14 +525,14 @@ static void process_ui(int c)
switch (call.state) {
case CALL_IDLE:
if (c > 0) {
if (c >= '0' && c <= '9' && strlen(call.station_id) < call.dial_digits) {
if (c >= '0' && c <= '9' && (int)strlen(call.station_id) < call.dial_digits) {
call.station_id[strlen(call.station_id) + 1] = '\0';
call.station_id[strlen(call.station_id)] = c;
}
if ((c == 8 || c == 127) && strlen(call.station_id))
call.station_id[strlen(call.station_id) - 1] = '\0';
dial_after_hangup:
if (c == 'd' && strlen(call.station_id) == call.dial_digits) {
if (c == 'd' && (int)strlen(call.station_id) == call.dial_digits) {
int rc;
int callref = ++new_callref;