diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-08-12 18:46:54 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-08-12 18:46:54 +0000 |
commit | 1c9a1429386545a4986a50cf47caac036269e1ff (patch) | |
tree | 67830ce3386b5834fb9dbd5d2c7717f951a7d9b2 | |
parent | 44970fff959bd5cea7392da813d543f17123ef8e (diff) |
- style fix
- add trace message in cvs_ent_remove()
ok jfb
-rw-r--r-- | usr.bin/cvs/entries.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/cvs/entries.c b/usr.bin/cvs/entries.c index 890ce761120..c014774aca6 100644 --- a/usr.bin/cvs/entries.c +++ b/usr.bin/cvs/entries.c @@ -1,4 +1,4 @@ -/* $OpenBSD: entries.c,v 1.43 2005/08/10 14:49:20 xsa Exp $ */ +/* $OpenBSD: entries.c,v 1.44 2005/08/12 18:46:53 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -100,7 +100,7 @@ cvs_ent_open(const char *dir, int flags) fp = fopen(entpath, mode); if (fp == NULL) { - if (!nodir) + if (nodir == 0) cvs_log(LP_ERRNO, "cannot open %s for %s", entpath, mode[1] == '+' ? "writing" : "reading"); return (NULL); @@ -258,6 +258,8 @@ cvs_ent_remove(CVSENTRIES *ef, const char *name) { struct cvs_ent *ent; + cvs_log(LP_TRACE, "cvs_ent_remove(%s)", name); + ent = cvs_ent_get(ef, name); if (ent == NULL) return (-1); |