X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=util%2Fres.c;h=571064852cc8e9b6f39552c5787fd41ddbe17984;hp=c1f3d3ce9505cc1e0bf530dd96d27338370654ec;hb=bb761dd62f7718bb3040cd146ca5a2de40544cdf;hpb=b8fb0cb30ffc1fb35a34608a27245dd091566bb9 diff --git a/util/res.c b/util/res.c index c1f3d3c..5710648 100644 --- a/util/res.c +++ b/util/res.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: res.c,v $ - * Revision 1.21 1997-11-18 10:04:03 adam + * Revision 1.22 1998-01-12 15:04:32 adam + * Removed exit - call. + * + * Revision 1.21 1997/11/18 10:04:03 adam * Function res_trav returns number of 'hits'. * * Revision 1.20 1997/10/31 12:39:15 adam @@ -115,8 +118,8 @@ static void reread (Res r) fr = fopen (r->name, "r"); if (!fr) { - logf (LOG_FATAL|LOG_ERRNO, "Cannot open %s", r->name); - exit (1); + logf (LOG_WARN|LOG_ERRNO, "Cannot open %s", r->name); + return ; } while (1) { @@ -214,7 +217,10 @@ Res res_open (const char *name) #else if (access (name, R_OK)) #endif - logf (LOG_LOG|LOG_ERRNO, "Cannot access `%s'", name); + { + logf (LOG_LOG|LOG_ERRNO, "Cannot access resource file `%s'", name); + return NULL; + } r = xmalloc (sizeof(*r)); r->init = 0; r->first = r->last = NULL;