[sr-dev] git:master:fd705268: keepalive: declare variables at the beginning of functions