From c243ed5971751f523b785cec4b2c3c8cc09e89da Mon Sep 17 00:00:00 2001 From: Moritz Grimm Date: Fri, 27 Feb 2015 23:02:55 +0100 Subject: [PATCH] Fix cast --- src/configfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configfile.c b/src/configfile.c index 75d4a9a..1748167 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -244,7 +244,7 @@ parseConfig(const char *fileName) if (cur->xmlChildrenNode != NULL) { const char *errstr; ls_xmlContentPtr = (char *)xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); - ezConfig.metadataRefreshInterval = (unsigned int)strtonum(ls_xmlContentPtr, -1LL, (long long)INT_MAX, &errstr); + ezConfig.metadataRefreshInterval = (int)strtonum(ls_xmlContentPtr, -1LL, (long long)INT_MAX, &errstr); if (errstr) { printf("%s[%ld]: Error: In : '%s' is %s\n", fileName, xmlGetLineNo(cur), ls_xmlContentPtr, errstr);