diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-04-07 12:54:41 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-04-07 12:54:41 +0000 |
commit | 377dfcb8f58ea4cd2032705f117460da7e17ea82 (patch) | |
tree | f1fe49652ff5a33337b429608f615096dcb4b0ab /usr.bin/rcs/rcsprog.c | |
parent | 2a6ba1728aad46fff56bbff85d1008c007a1d558 (diff) |
change rcs_set_mtime() return type to void.
Diffstat (limited to 'usr.bin/rcs/rcsprog.c')
-rw-r--r-- | usr.bin/rcs/rcsprog.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c index bf402fa77ec..245fc38ecc2 100644 --- a/usr.bin/rcs/rcsprog.c +++ b/usr.bin/rcs/rcsprog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsprog.c,v 1.93 2006/04/06 10:13:00 xsa Exp $ */ +/* $OpenBSD: rcsprog.c,v 1.94 2006/04/07 12:54:40 xsa Exp $ */ /* * Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -113,25 +113,20 @@ rcs_get_mtime(const char *filename) * rcs_set_mtime() * * Set <filename> last modified time to <mtime> if it's not set to -1. - * Returns 0 on success, or -1 on failure. */ -int +void rcs_set_mtime(const char *filename, time_t mtime) { static struct timeval tv[2]; if (mtime == -1) - return (0); + return; tv[0].tv_sec = mtime; tv[1].tv_sec = tv[0].tv_sec; - if (utimes(filename, tv) == -1) { - cvs_log(LP_ERRNO, "error setting utimes"); - return (-1); - } - - return (0); + if (utimes(filename, tv) == -1) + fatal("error setting utimes: %s", strerror(errno)); } int |