From 1c9a1429386545a4986a50cf47caac036269e1ff Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Fri, 12 Aug 2005 18:46:54 +0000 Subject: - style fix - add trace message in cvs_ent_remove() ok jfb --- usr.bin/cvs/entries.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr.bin/cvs/entries.c') 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 * 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); -- cgit v1.2.3