From 4ff1f1a71491e5c467ebee7f368602b2b124d80d Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 28 Jun 2020 23:37:47 -0400 Subject: [PATCH] Nomenclature is important --- include/patty/ax25/frame.h | 2 +- src/frame.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/patty/ax25/frame.h b/include/patty/ax25/frame.h index cb1582a..a8011b3 100644 --- a/include/patty/ax25/frame.h +++ b/include/patty/ax25/frame.h @@ -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, diff --git a/src/frame.c b/src/frame.c index bcd0906..ad6c217 100644 --- a/src/frame.c +++ b/src/frame.c @@ -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;