diff options
author | 2006-05-27 08:12:29 +0000 | |
---|---|---|
committer | 2006-05-27 08:12:29 +0000 | |
commit | 2f2c0ad7291e697e11e8899a79face72c420db33 (patch) | |
tree | be4dc581ef8a718954fbae055cb9c551d25f002d /usr.bin/rcs/rcsutil.c | |
parent | commiting removed files now works (diff) | |
download | wireguard-openbsd-2f2c0ad7291e697e11e8899a79face72c420db33.tar.xz wireguard-openbsd-2f2c0ad7291e697e11e8899a79face72c420db33.zip |
Rename RCSFILE.fd to RCSFILE.rf_fd, plus minor spacing nits. No
binary change.
OK xsa@
Diffstat (limited to 'usr.bin/rcs/rcsutil.c')
-rw-r--r-- | usr.bin/rcs/rcsutil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rcs/rcsutil.c b/usr.bin/rcs/rcsutil.c index b8542fa1959..cb97e08f3d4 100644 --- a/usr.bin/rcs/rcsutil.c +++ b/usr.bin/rcs/rcsutil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsutil.c,v 1.12 2006/05/27 05:49:14 ray Exp $ */ +/* $OpenBSD: rcsutil.c,v 1.13 2006/05/27 08:12:29 ray Exp $ */ /* * Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> @@ -43,7 +43,7 @@ rcs_get_mtime(RCSFILE *file) struct stat st; time_t mtime; - if (fstat(file->fd, &st) == -1) { + if (fstat(file->rf_fd, &st) == -1) { warn("%s", file->rf_path); return (-1); } @@ -69,7 +69,7 @@ rcs_set_mtime(RCSFILE *file, time_t mtime) tv[0].tv_sec = mtime; tv[1].tv_sec = tv[0].tv_sec; - if (futimes(file->fd, tv) == -1) + if (futimes(file->rf_fd, tv) == -1) err(1, "utimes"); } |