diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-11-13 11:22:58 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-11-13 11:22:58 +0000 |
commit | 21b1dcd9fbe6fef6eefe61c5d6bf5be77dd92ad9 (patch) | |
tree | bbf35326e2a01b4e07f8fd54bfec723080863018 /usr.bin/rcs/rcsprog.c | |
parent | d2c5ea031a4eade915351f02e138e8b09354fd54 (diff) |
no magic, use defined RCS_LOCK_INVAL variable.
Diffstat (limited to 'usr.bin/rcs/rcsprog.c')
-rw-r--r-- | usr.bin/rcs/rcsprog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c index 3b9d32eac6a..d050c50ceaf 100644 --- a/usr.bin/rcs/rcsprog.c +++ b/usr.bin/rcs/rcsprog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsprog.c,v 1.133 2006/10/12 17:20:12 niallo Exp $ */ +/* $OpenBSD: rcsprog.c,v 1.134 2006/11/13 11:22:57 xsa Exp $ */ /* * Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -188,7 +188,7 @@ rcs_main(int argc, char **argv) time_t rcs_mtime = -1; kflag = RCS_KWEXP_ERR; - lkmode = -1; + lkmode = RCS_LOCK_INVAL; fmode = S_IRUSR|S_IRGRP|S_IROTH; flags = RCS_RDWR|RCS_PARSE_FULLY; lrev = urev = descfile = NULL; @@ -423,7 +423,7 @@ rcs_main(int argc, char **argv) rcs_kwexp_set(file, kflag); - if (lkmode != -1) + if (lkmode != RCS_LOCK_INVAL) (void)rcs_lock_setmode(file, lkmode); if (rcsflags & RCSPROG_LFLAG) { |