summaryrefslogtreecommitdiff
path: root/sntp/crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'sntp/crypto.c')
-rw-r--r--sntp/crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sntp/crypto.c b/sntp/crypto.c
index aa8d91d..b178f8c 100644
--- a/sntp/crypto.c
+++ b/sntp/crypto.c
@@ -3,7 +3,7 @@
#include <ctype.h>
struct key *key_ptr;
-int key_cnt = 0;
+size_t key_cnt = 0;
int
make_mac(
@@ -51,7 +51,7 @@ auth_md5(
int authentic;
char digest[20];
- if (mac_size > sizeof(digest))
+ if (mac_size > (int)sizeof(digest))
return 0;
hash_len = make_mac(pkt_data, pkt_size, sizeof(digest), cmp_key,
digest);