Skip to contentSkip to conversation

chunkd: use correct size

PATCH In review Pete Zaitcev 1 participant 1 message Aug 13, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 chunkd: use correct size

The strings can never be this long, but I think it looks nicer.

server/server.c +1 -1
index 15ac4f1..44d97c9 100644
@@ -631,7 +631,7 @@ static bool cli_resp_xml(struct client *cli, GList *content)
 {
 	int rc;
 	bool rcb;
-	int content_len = strlist_len(content);
+	size_t content_len = strlist_len(content);
 	struct chunksrv_req *resp = NULL;
 
 	resp = malloc(sizeof(*resp));