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.
Signed-off-by: Pete Zaitcev <[email protected]> diff --git a/server/config.c b/server/config.c index 282781d..7ef9c1a 100644 --- a/server/config.c +++ b/server/config.c @@ -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) { -- To unsubscribe from this list: send the line "unsubscribe hail-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
