summaryrefslogtreecommitdiff
path: root/proto/rpki
diff options
context:
space:
mode:
authorJan Moskyto Matejka <mq@ucw.cz>2016-12-07 15:35:35 +0100
committerJan Moskyto Matejka <mq@ucw.cz>2016-12-07 15:35:35 +0100
commitb94e5e58dbd33f4d2b9d721c51a9c8c4d8f77bea (patch)
treeddb01cf8fbd17076638b57e47546bff6f6a56820 /proto/rpki
parentad88b94bca78e010357a6c7806e1d5e01701d4a7 (diff)
RPKI: fixed some of the extended warnings
Diffstat (limited to 'proto/rpki')
-rw-r--r--proto/rpki/packets.c6
-rw-r--r--proto/rpki/packets.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/proto/rpki/packets.c b/proto/rpki/packets.c
index 22b0b54f..b9d93106 100644
--- a/proto/rpki/packets.c
+++ b/proto/rpki/packets.c
@@ -79,7 +79,7 @@ static const char *str_pdu_type_[] = {
[ERROR] = "Error"
};
-static const char * const str_pdu_type(uint type) {
+static const char *str_pdu_type(uint type) {
if (type < PDU_TYPE_MAX)
return str_pdu_type_[type];
else
@@ -886,7 +886,7 @@ rpki_rx_packet(struct rpki_cache *cache, struct pdu_header *pdu)
}
int
-rpki_rx_hook(struct birdsock *sk, int size)
+rpki_rx_hook(struct birdsock *sk, uint size)
{
struct rpki_cache *cache = sk->data;
struct rpki_proto *p = cache->p;
@@ -894,7 +894,7 @@ rpki_rx_hook(struct birdsock *sk, int size)
byte *pkt_start = sk->rbuf;
byte *end = pkt_start + size;
- DBG("rx hook got %d bytes \n", size);
+ DBG("rx hook got %u bytes \n", size);
while (end >= pkt_start + RPKI_PDU_HEADER_LEN)
{
diff --git a/proto/rpki/packets.h b/proto/rpki/packets.h
index d2b180bd..d6f8a249 100644
--- a/proto/rpki/packets.h
+++ b/proto/rpki/packets.h
@@ -38,7 +38,7 @@ enum rpki_rtvals {
int rpki_send_serial_query(struct rpki_cache *cache);
int rpki_send_reset_query(struct rpki_cache *cache);
-int rpki_rx_hook(sock *sk, int size);
+int rpki_rx_hook(sock *sk, uint size);
void rpki_connected_hook(sock *sk);
void rpki_err_hook(sock *sk, int size);