File 0001-Fix-comparison-between-signed-and-unsigned.diff of Package ldns

From 592fb992d431ceaef7978b10a97b95cee2d31fbe Mon Sep 17 00:00:00 2001
From: wouter <wouter@af62348d-a3ea-0310-b058-bb613a78d823>
Date: Fri, 2 Sep 2011 14:04:48 +0000
Subject: [PATCH] Fix comparison between signed and unsigned.

git-svn-id: http://www.nlnetlabs.nl/svn/ldns/trunk@3538 af62348d-a3ea-0310-b058-bb613a78d823
---
 rr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Index: ldns-1.5.1/rr.c
===================================================================
--- ldns-1.5.1.orig/rr.c
+++ ldns-1.5.1/rr.c
@@ -422,7 +422,7 @@ ldns_rr_new_frm_str_internal(ldns_rr **n
 							if (c != -1) {
 								rd_strlen = strlen(rd);
 							}
-							if (c == -1 || cur_hex_data_size + rd_strlen > 2 * hex_data_size) {
+							if (c == -1 || (size_t)cur_hex_data_size + rd_strlen > 2 * (size_t)hex_data_size) {
 								LDNS_FREE(hex_data_str);
 								LDNS_FREE(rd);
 								LDNS_FREE(b64);