diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2008-03-08 11:53:37 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2008-03-08 11:53:37 +0000 |
commit | c3024e8f3379a5e1412f0f9158857dee595417a2 (patch) | |
tree | c357e02c79c31584dfed4b64f88930c84b0f4d01 /usr.bin/cvs/rcs.c | |
parent | 9a664b1bab7e8a1315c8c320f4bd2128933c7f22 (diff) |
correct usage of lseek(2);
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r-- | usr.bin/cvs/rcs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c index d9f7de5b515..56f1fbd7de3 100644 --- a/usr.bin/cvs/rcs.c +++ b/usr.bin/cvs/rcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.c,v 1.256 2008/03/02 19:31:08 tobias Exp $ */ +/* $OpenBSD: rcs.c,v 1.257 2008/03/08 11:53:36 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -3072,7 +3072,7 @@ rcs_rev_write_stmp(RCSFILE *rfp, RCSNUM *rev, char *template, int mode) cvs_worklist_add(template, &temp_files); rcs_rev_write_fd(rfp, rev, fd, mode); - if (lseek(fd, SEEK_SET, 0) < 0) + if (lseek(fd, 0, SEEK_SET) < 0) fatal("rcs_rev_write_stmp: lseek: %s", strerror(errno)); return (fd); |