Nomenclature is important

This commit is contained in:
XANTRONIX Development 2020-06-28 23:37:47 -04:00 committed by XANTRONIX Industrial
parent d98249ef77
commit 4ff1f1a714
2 changed files with 4 additions and 4 deletions

View file

@ -62,7 +62,7 @@ typedef struct _patty_ax25_frame {
ssize_t patty_ax25_frame_decode(patty_ax25_frame *frame,
enum patty_ax25_frame_format format,
void *src,
void *buf,
size_t len);
ssize_t patty_ax25_frame_encode(patty_ax25_frame *frame,

View file

@ -165,7 +165,7 @@ error:
ssize_t patty_ax25_frame_decode(patty_ax25_frame *frame,
enum patty_ax25_frame_format format,
void *src,
void *buf,
size_t size) {
ssize_t decoded;
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.
*/
if ((decoded = decode_address(frame, src, offset)) < 0) {
if ((decoded = decode_address(frame, buf, offset)) < 0) {
errno = EIO;
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
* 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;
goto error_decode;