=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/update.c,v retrieving revision 1.167 retrieving revision 1.168 diff -c -r1.167 -r1.168 *** src/usr.bin/cvs/update.c 2012/07/02 21:56:25 1.167 --- src/usr.bin/cvs/update.c 2013/12/13 15:19:41 1.168 *************** *** 1,4 **** ! /* $OpenBSD: update.c,v 1.167 2012/07/02 21:56:25 tedu Exp $ */ /* * Copyright (c) 2006 Joris Vink * --- 1,4 ---- ! /* $OpenBSD: update.c,v 1.168 2013/12/13 15:19:41 zhuk Exp $ */ /* * Copyright (c) 2006 Joris Vink * *************** *** 17,22 **** --- 17,23 ---- #include + #include #include #include #include *************** *** 235,241 **** void cvs_update_leavedir(struct cvs_file *cf) { - off_t base; int nbytes; int isempty; size_t bufsize; --- 236,241 ---- *************** *** 272,278 **** if (lseek(cf->fd, 0, SEEK_SET) == -1) fatal("cvs_update_leavedir: %s", strerror(errno)); ! while ((nbytes = getdirentries(cf->fd, buf, bufsize, &base)) > 0) { ebuf = buf + nbytes; cp = buf; --- 272,278 ---- if (lseek(cf->fd, 0, SEEK_SET) == -1) fatal("cvs_update_leavedir: %s", strerror(errno)); ! while ((nbytes = getdents(cf->fd, buf, bufsize)) > 0) { ebuf = buf + nbytes; cp = buf;