From da31b5798016e6215b14a53e0a6685da63159930 Mon Sep 17 00:00:00 2001 From: night0721 Date: Fri, 20 Sep 2024 17:16:59 +0100 Subject: [PATCH] Minor edit on variable names --- include/packet.h | 2 +- lib/util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/packet.h b/include/packet.h index 60ebefa..9d6a2d4 100644 --- a/include/packet.h +++ b/include/packet.h @@ -74,7 +74,7 @@ typedef struct message_t { /* Utilities functions */ int recv_packet(packet_t *pkt, int fd, uint8_t required_type); -packet_t *create_packet(uint8_t option, uint8_t type, uint32_t length, uint8_t *data, uint8_t *signature); +packet_t *create_packet(uint8_t status, uint8_t type, uint32_t length, uint8_t *data, uint8_t *signature); int send_packet(packet_t *msg, int fd); void free_packet(packet_t *msg); int verify_packet(packet_t *pkt, int fd); diff --git a/lib/util.c b/lib/util.c index 130a46f..c976cae 100644 --- a/lib/util.c +++ b/lib/util.c @@ -152,7 +152,7 @@ void write_log(int type, const char *fmt, ...) va_end(args); } -void print_bin(const unsigned char *ptr, size_t length) +void print_bin(const uint8_t *ptr, size_t length) { for (size_t i = 0; i < length; i++) { printf("%02x ", ptr[i]);