<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 18, 2015 at 4:14 AM, Egor Starkov <span dir="ltr"><<a href="mailto:egor.starkov@ge.com" target="_blank">egor.starkov@ge.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
+ if (idle_time < 0)<br>
+ weston_config_section_get_int(section, "idle-time", &idle_time, -1);<br>
+ if (idle_time < 0)<br>
+ idle_time = 300; /* default idle timeout, in seconds */<br></blockquote><div><br></div><div>You can just pass 300 as the default value rather than -1 and the if statement, ie:<br><br></div><div> if (idle_time < 0)<br></div><div> weston_config_section_get_int(section, "idle-time", &idle_time, 300);<br><br></div><div><br> <br></div></div></div></div>