diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-07-25 13:37:54 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-07-25 13:37:54 +0000 |
commit | 6ca1287427ca9716792eccce16c25434f581a52c (patch) | |
tree | 365c6a95121028568f0cee59e32f94c41f17e638 /usr.bin/cvs | |
parent | c59dc41292aaf8e3238fb6c18c60d8e1cc49915e (diff) |
minor KNF;
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c index 4f43bb49b7e..16d272630ff 100644 --- a/usr.bin/cvs/util.c +++ b/usr.bin/cvs/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.42 2005/07/25 12:05:43 xsa Exp $ */ +/* $OpenBSD: util.c,v 1.43 2005/07/25 13:37:53 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -350,7 +350,7 @@ cvs_getargv(const char *line, char **argv, int argvlen) argc++; } - if (err) { + if (err != 0) { /* ditch the argument vector */ for (i = 0; i < (u_int)argc; i++) free(argv[i]); @@ -638,7 +638,7 @@ cvs_create_dir(const char *path, int create_adm, char *root, char *repo) /* * Create administrative files if requested. */ - if (create_adm) { + if (create_adm == 1) { l = strlcat(rpath, d, sizeof(rpath)); if (l >= sizeof(rpath)) goto done; |