summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2006-06-14 15:17:55 +0000
committerJoris Vink <joris@cvs.openbsd.org>2006-06-14 15:17:55 +0000
commit747ef2ff5990aad0f7fb095ee813350931051431 (patch)
tree68957fc9ca8f9e08fe84310964d7d4b81064c0b3 /usr.bin
parent8cb8ced474e97524f25aeb52797ec6e9db48ea32 (diff)
i mixed up the offset and whence variables for lseek(2)
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/update.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/update.c b/usr.bin/cvs/update.c
index 44826460bd3..168f10dc20e 100644
--- a/usr.bin/cvs/update.c
+++ b/usr.bin/cvs/update.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: update.c,v 1.72 2006/06/14 14:10:50 joris Exp $ */
+/* $OpenBSD: update.c,v 1.73 2006/06/14 15:17:54 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -183,7 +183,7 @@ cvs_update_leavedir(struct cvs_file *cf)
isempty = 1;
buf = xmalloc(bufsize);
- if (lseek(cf->fd, SEEK_SET, 0) == -1)
+ if (lseek(cf->fd, 0, SEEK_SET) == -1)
fatal("cvs_update_leavedir: %s", strerror(errno));
while ((nbytes = getdirentries(cf->fd, buf, bufsize, &base)) > 0) {