Minor edit on variable names

This commit is contained in:
Night Kaly 2024-09-20 17:16:59 +01:00
parent d22dfa1561
commit da31b57980
Signed by: night0721
GPG key ID: 957D67B8DB7A119B
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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]);