Skip to contentSkip to conversation

tabled: fix type of n

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

lore
Share & tools
lore
#0 lore raw

PATCH 3/7 tabled: fix type of n

We might not be able to detect LONG_MAX returned by strtol if n is clipped. OK, that's far fetched, but anyway it's better to have the correct type.

server/config.c +1 -1
index 282781d..7ef9c1a 100644
@@ -189,7 +189,7 @@ static void cfg_elm_end (GMarkupParseContext *context,
 {
 	struct config_context *cc = user_data;
 	struct stat statb;
-	int n;
+	long n;
 
 	if (!strcmp(element_name, "PID") && cc->text) {
 		if (tabled_srv.pid_file) {