Skip to content

Commit

Permalink
Fix missing-prototype error for the print_buf functions in sample pro…
Browse files Browse the repository at this point in the history
…grams

Signed-off-by: Michael Schuster <michael@schuster.ms>
  • Loading branch information
misch7 authored and minosgalanakis committed Aug 6, 2024
1 parent 9bf1875 commit 5830505
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion programs/cipher/cipher_aead_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const unsigned char msg2_part2[] = { 0x15, 0x16, 0x17 };
const unsigned char key_bytes[32] = { 0x2a };

/* Print the contents of a buffer in hex */
void print_buf(const char *title, unsigned char *buf, size_t len)
static void print_buf(const char *title, unsigned char *buf, size_t len)
{
printf("%s:", title);
for (size_t i = 0; i < len; i++) {
Expand Down
2 changes: 1 addition & 1 deletion programs/hash/md_hmac_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const unsigned char msg2_part2[] = { 0x06, 0x06 };
const unsigned char key_bytes[32] = { 0 };

/* Print the contents of a buffer in hex */
void print_buf(const char *title, unsigned char *buf, size_t len)
static void print_buf(const char *title, unsigned char *buf, size_t len)
{
printf("%s:", title);
for (size_t i = 0; i < len; i++) {
Expand Down
2 changes: 1 addition & 1 deletion programs/psa/aead_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const unsigned char msg2_part2[] = { 0x15, 0x16, 0x17 };
const unsigned char key_bytes[32] = { 0x2a };

/* Print the contents of a buffer in hex */
void print_buf(const char *title, uint8_t *buf, size_t len)
static void print_buf(const char *title, uint8_t *buf, size_t len)
{
printf("%s:", title);
for (size_t i = 0; i < len; i++) {
Expand Down
2 changes: 1 addition & 1 deletion programs/psa/hmac_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const unsigned char msg2_part2[] = { 0x06, 0x06 };
const unsigned char key_bytes[32] = { 0 };

/* Print the contents of a buffer in hex */
void print_buf(const char *title, uint8_t *buf, size_t len)
static void print_buf(const char *title, uint8_t *buf, size_t len)
{
printf("%s:", title);
for (size_t i = 0; i < len; i++) {
Expand Down

0 comments on commit 5830505

Please sign in to comment.