Minor edit on variable names
This commit is contained in:
parent
d22dfa1561
commit
da31b57980
2 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ typedef struct message_t {
|
||||||
|
|
||||||
/* Utilities functions */
|
/* Utilities functions */
|
||||||
int recv_packet(packet_t *pkt, int fd, uint8_t required_type);
|
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);
|
int send_packet(packet_t *msg, int fd);
|
||||||
void free_packet(packet_t *msg);
|
void free_packet(packet_t *msg);
|
||||||
int verify_packet(packet_t *pkt, int fd);
|
int verify_packet(packet_t *pkt, int fd);
|
||||||
|
|
|
@ -152,7 +152,7 @@ void write_log(int type, const char *fmt, ...)
|
||||||
va_end(args);
|
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++) {
|
for (size_t i = 0; i < length; i++) {
|
||||||
printf("%02x ", ptr[i]);
|
printf("%02x ", ptr[i]);
|
||||||
|
|
Loading…
Reference in a new issue