Browse Source

yuck, another bad sizeof(). again in code hacked on the Frankfurt->Montreal

flight. should we draw concludions from that? I'd like to blame the
Air Canada seats...
OPENBSD_3_6
henning 20 years ago
parent
commit
4a8fb608ce
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/usr.sbin/ntpd/ntp.c

+ 2
- 2
src/usr.sbin/ntpd/ntp.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: ntp.c,v 1.13 2004/07/07 01:01:27 henning Exp $ */
/* $OpenBSD: ntp.c,v 1.14 2004/07/07 03:57:28 henning Exp $ */
/* /*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -149,7 +149,7 @@ ntp_main(int pipe_prnt[2], struct ntpd_conf *conf)
} }
bzero(pfd, sizeof(struct pollfd) * pfd_elms); bzero(pfd, sizeof(struct pollfd) * pfd_elms);
bzero(idx2peer, sizeof(struct ntp_peer) * idx2peer_elms);
bzero(idx2peer, sizeof(void *) * idx2peer_elms);
nextaction = next_adjtime; nextaction = next_adjtime;
pfd[PFD_PIPE_MAIN].fd = ibuf_main.fd; pfd[PFD_PIPE_MAIN].fd = ibuf_main.fd;
pfd[PFD_PIPE_MAIN].events = POLLIN; pfd[PFD_PIPE_MAIN].events = POLLIN;


Loading…
Cancel
Save