X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fres.c;h=57c1d093994364909534cc1c6110c2bc069620c3;hb=f6999bc6543f9799eae0b595e2d7c7e3806cf119;hp=a65e5060b15da233e8740235fc2da77993890355;hpb=2b1851bd5565e3d21f9cf9a37661a584c063b75f;p=idzebra-moved-to-github.git diff --git a/util/res.c b/util/res.c index a65e506..57c1d09 100644 --- a/util/res.c +++ b/util/res.c @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: res.c,v 1.29 2002-04-04 14:14:14 adam Exp $ - */ +/* $Id: res.c,v 1.32 2002-09-09 09:35:48 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include @@ -65,7 +81,7 @@ static void reread (Res r) fr = fopen (r->name, "r"); if (!fr) { - logf (LOG_WARN|LOG_ERRNO, "Cannot open %s", r->name); + logf (LOG_WARN|LOG_ERRNO, "Cannot open `%s'", r->name); return ; } while (1) @@ -165,7 +181,7 @@ Res res_open (const char *name, Res def_res) if (access (name, R_OK)) #endif { - logf (LOG_LOG|LOG_ERRNO, "Cannot access resource file `%s'", name); + logf (LOG_WARN|LOG_ERRNO, "Cannot open `%s'", name); return 0; } r = (Res) xmalloc (sizeof(*r)); @@ -292,7 +308,7 @@ int res_write (Res r) fr = fopen (r->name, "w"); if (!fr) { - logf (LOG_FATAL|LOG_ERRNO, "Cannot create %s", r->name); + logf (LOG_FATAL|LOG_ERRNO, "Cannot create `%s'", r->name); exit (1); }