Fixed indentation warnings detected by newer gcc

Fixed one error discovered by these warnings in easycomm.c
astyle-formatting
Michael Black W9MDB 2017-06-28 18:00:20 +01:00
rodzic cab7eb1647
commit 0b1a58d308
18 zmienionych plików z 78 dodań i 77 usunięć

Wyświetl plik

@ -212,9 +212,10 @@ easycomm_rot_move_velocity(ROT *rot, int direction, int speed)
char cmdstr[24], ackbuf[32];
int retval;
rig_debug(RIG_DEBUG_TRACE, "%s called\n", __FUNCTION__);
if(speed<0 && speed>9999)
if(speed<0 && speed>9999) {
rig_debug(RIG_DEBUG_ERR,"%s: Invalid speed value!(0-9999) (%d)\n", __FUNCTION__, speed);
return -RIG_EINVAL;
}
/* Speed for EasyComm 3 */
switch (direction) {

Wyświetl plik

@ -370,13 +370,14 @@ ts570_get_level (RIG * rig, vfo_t vfo, setting_t level, value_t * val)
if (levelint == 0) {
val->i = 0;
} else {
for (i=0; i<levelint && i<MAXDBLSTSIZ; i++)
for (i=0; i<levelint && i<MAXDBLSTSIZ; i++) {
if (rig->state.preamp[i] == 0) {
rig_debug(RIG_DEBUG_ERR,"%s: "
"unexpected att level %d\n",
__func__, levelint);
return -RIG_EPROTO;
}
}
if (i != levelint)
return -RIG_EINTERNAL;
val->i = rig->state.preamp[i-1];

Wyświetl plik

@ -117,8 +117,7 @@ static int prm80_transaction(RIG *rig, const char *cmd, int cmd_len, char *data,
*data_len = retval;
/* chomp CR/LF from string
*/
/* chomp CR/LF from string */
if (*data_len >= 2 && data[*data_len-1] == '\x0a')
*data_len -= 2;