-/* $Id: res.c,v 1.47 2005-10-27 08:49:29 adam Exp $
- Copyright (C) 1995-2005
+/* $Id: res.c,v 1.51 2006-08-14 10:40:34 adam Exp $
+ Copyright (C) 1995-2006
Index Data ApS
This file is part of the Zebra server.
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.
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
*/
#include <stdio.h>
if (!(t = res_get(r, name)))
{
- yaz_log(YLOG_DEBUG, "CAUTION: Using default resource %s:%s", name, def);
+ if (def)
+ yaz_log(YLOG_DEBUG, "Using default resource %s:%s", name, def);
return def;
}
else
if (!fr)
{
yaz_log(YLOG_FATAL|YLOG_ERRNO, "Cannot create `%s'", fname);
- exit(1);
+ return ZEBRA_FAIL;
}
for (re = r->first; re; re=re->next)
res_dump (r->over_res, level + 1);
}
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+