Merge pull request #2801 from elfiesmelfie/fix_ovs_clang
[collectd.git] / src / amqp1.c
index 7cbdb5f..a6a2d35 100644 (file)
@@ -135,7 +135,7 @@ static int amqp1_send_out_messages(pn_link_t *link) /* {{{ */
     while (cdm) {
       DEQ_REMOVE_HEAD(out_messages);
       DEQ_INSERT_TAIL(to_send, cdm);
-      if (DEQ_SIZE(to_send) == link_credit)
+      if (DEQ_SIZE(to_send) == (size_t)link_credit)
         break;
       cdm = DEQ_HEAD(out_messages);
     }
@@ -323,7 +323,7 @@ static int encqueue(cd_message_t *cdm,
                                      &cdm->mbuf.size)) == PN_OVERFLOW) {
     DEBUG("amqp1 plugin: increasing message buffer size %zu", cdm->mbuf.size);
     cdm->mbuf.size *= 2;
-    cdm->mbuf.start = (char *)realloc(cdm->mbuf.start, cdm->mbuf.size);
+    cdm->mbuf.start = realloc(cdm->mbuf.start, cdm->mbuf.size);
   }
 
   if (status != 0) {