=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rusers/rusers.c,v retrieving revision 1.16 retrieving revision 1.17 diff -c -r1.16 -r1.17 *** src/usr.bin/rusers/rusers.c 2001/11/06 02:22:25 1.16 --- src/usr.bin/rusers/rusers.c 2001/11/06 02:46:29 1.17 *************** *** 1,4 **** ! /* $OpenBSD: rusers.c,v 1.16 2001/11/06 02:22:25 millert Exp $ */ /* * Copyright (c) 2001 Todd C. Miller --- 1,4 ---- ! /* $OpenBSD: rusers.c,v 1.17 2001/11/06 02:46:29 millert Exp $ */ /* * Copyright (c) 2001 Todd C. Miller *************** *** 55,61 **** */ #ifndef lint ! static const char rcsid[] = "$OpenBSD: rusers.c,v 1.16 2001/11/06 02:22:25 millert Exp $"; #endif /* not lint */ #include --- 55,61 ---- */ #ifndef lint ! static const char rcsid[] = "$OpenBSD: rusers.c,v 1.17 2001/11/06 02:46:29 millert Exp $"; #endif /* not lint */ #include *************** *** 516,521 **** --- 516,522 ---- memset(&baddr, 0, sizeof(baddr)); memset(&res, 0, sizeof(res)); memset(&msg, 0, sizeof(msg)); + memset(&timeout, 0, sizeof(timeout)); args.prog = RUSERSPROG; args.vers = RUSERSVERS_IDLE; *************** *** 594,600 **** /* * We stay in the select loop for ~5 seconds */ - timerclear(&timeout.it_value); timeout.it_value.tv_sec = 5; timeout.it_value.tv_usec = 0; for (;;) { --- 595,600 ----