On Sun, May 18, 2014 at 03:05:30PM +0100, Sami Kerola wrote: > +int main(int argc, char **argv) > +{ > + struct setterm_control ctl; > + int term_errno; > > + memset(&ctl, 0, sizeof (ctl)); The memset() call is unnecessary. It's enough to set any struct member to zeroize whole struct, etc: struct setterm_control ctl = { .opt_te_terminal_name = NULL }; -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html