Minor changes
This commit is contained in:
parent
67afb68917
commit
4d9c45ad94
1 changed files with 1 additions and 7 deletions
|
@ -27,9 +27,7 @@ static ssize_t decode_station(patty_ax25_address *address,
|
||||||
/*
|
/*
|
||||||
* Take note if we have reached the end of the call sign.
|
* Take note if we have reached the end of the call sign.
|
||||||
*/
|
*/
|
||||||
if (space == 0) {
|
space = 1;
|
||||||
space = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
address->callsign[i] = '\0';
|
address->callsign[i] = '\0';
|
||||||
} else {
|
} else {
|
||||||
|
@ -117,10 +115,6 @@ static ssize_t decode_address(patty_ax25_frame *frame,
|
||||||
offset += decoded;
|
offset += decoded;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* It would be considered erroneous if the destination address did have the
|
|
||||||
* extension bit set to 1.
|
|
||||||
*/
|
|
||||||
if ((decoded = decode_station(&frame->src, data, offset)) < 0) {
|
if ((decoded = decode_station(&frame->src, data, offset)) < 0) {
|
||||||
goto error;
|
goto error;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue