diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-09-30 15:05:48 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-09-30 15:05:48 +0000 |
commit | 1b6c5fb7e81caa404ac683005ded91496c36d6d1 (patch) | |
tree | f815b1eaf75eeab0049307bc2ac01d69c5dae7fb /usr.bin/rcs/rcsprog.c | |
parent | aa440bf11a565b1f27d98f44076bd07b6d471049 (diff) |
KNF
Diffstat (limited to 'usr.bin/rcs/rcsprog.c')
-rw-r--r-- | usr.bin/rcs/rcsprog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c index 55c0c2d252f..ec2abd2b56a 100644 --- a/usr.bin/rcs/rcsprog.c +++ b/usr.bin/rcs/rcsprog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsprog.c,v 1.15 2005/09/30 15:02:26 niallo Exp $ */ +/* $OpenBSD: rcsprog.c,v 1.16 2005/09/30 15:05:47 joris Exp $ */ /* * Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -71,7 +71,7 @@ rcs_statfile(char *fname, char *out, size_t len) if (l == -1 || l >= (int)sizeof(filev)) return (-1); - if (stat(RCSDIR, &st) != -1 && (st.st_mode & S_IFDIR)) { + if ((stat(RCSDIR, &st) != -1) && (st.st_mode & S_IFDIR)) { l = snprintf(fpath, sizeof(fpath), "%s/%s", RCSDIR, filev); if (l == -1 || l >= (int)sizeof(fpath)) return (-1); |