Nomenclature is important
This commit is contained in:
parent
d98249ef77
commit
4ff1f1a714
2 changed files with 4 additions and 4 deletions
|
@ -62,7 +62,7 @@ typedef struct _patty_ax25_frame {
|
||||||
|
|
||||||
ssize_t patty_ax25_frame_decode(patty_ax25_frame *frame,
|
ssize_t patty_ax25_frame_decode(patty_ax25_frame *frame,
|
||||||
enum patty_ax25_frame_format format,
|
enum patty_ax25_frame_format format,
|
||||||
void *src,
|
void *buf,
|
||||||
size_t len);
|
size_t len);
|
||||||
|
|
||||||
ssize_t patty_ax25_frame_encode(patty_ax25_frame *frame,
|
ssize_t patty_ax25_frame_encode(patty_ax25_frame *frame,
|
||||||
|
|
|
@ -165,7 +165,7 @@ error:
|
||||||
|
|
||||||
ssize_t patty_ax25_frame_decode(patty_ax25_frame *frame,
|
ssize_t patty_ax25_frame_decode(patty_ax25_frame *frame,
|
||||||
enum patty_ax25_frame_format format,
|
enum patty_ax25_frame_format format,
|
||||||
void *src,
|
void *buf,
|
||||||
size_t size) {
|
size_t size) {
|
||||||
ssize_t decoded;
|
ssize_t decoded;
|
||||||
off_t offset = 0;
|
off_t offset = 0;
|
||||||
|
@ -175,7 +175,7 @@ ssize_t patty_ax25_frame_decode(patty_ax25_frame *frame,
|
||||||
/*
|
/*
|
||||||
* First, decode the variable-length Address field.
|
* First, decode the variable-length Address field.
|
||||||
*/
|
*/
|
||||||
if ((decoded = decode_address(frame, src, offset)) < 0) {
|
if ((decoded = decode_address(frame, buf, offset)) < 0) {
|
||||||
errno = EIO;
|
errno = EIO;
|
||||||
|
|
||||||
goto error_decode;
|
goto error_decode;
|
||||||
|
@ -187,7 +187,7 @@ ssize_t patty_ax25_frame_decode(patty_ax25_frame *frame,
|
||||||
* Next, decode the remaining Control Field, optional Protocol Identifier
|
* Next, decode the remaining Control Field, optional Protocol Identifier
|
||||||
* field, and Info payload that may follow.
|
* field, and Info payload that may follow.
|
||||||
*/
|
*/
|
||||||
if ((decoded = decode_info(frame, src, offset, size)) < 0) {
|
if ((decoded = decode_info(frame, buf, offset, size)) < 0) {
|
||||||
errno = EIO;
|
errno = EIO;
|
||||||
|
|
||||||
goto error_decode;
|
goto error_decode;
|
||||||
|
|
Loading…
Add table
Reference in a new issue