]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
RPKI: fixed some of the extended warnings
authorJan Moskyto Matejka <mq@ucw.cz>
Wed, 7 Dec 2016 14:35:35 +0000 (15:35 +0100)
committerJan Moskyto Matejka <mq@ucw.cz>
Wed, 7 Dec 2016 14:35:35 +0000 (15:35 +0100)
proto/rpki/packets.c
proto/rpki/packets.h

index 22b0b54f5d12f27298699a2949140d3341c502ac..b9d931063ec85a382e004a30bc3d49f7104b23f4 100644 (file)
@@ -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)
   {
index d2b180bd1d15d57a0338ba456f678b8aa152d564..d6f8a249baa99a17240f4e2820d878efed2e6932 100644 (file)
@@ -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);