projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added example OAI data
[idzebra-moved-to-github.git]
/
util
/
res-test.c
diff --git
a/util/res-test.c
b/util/res-test.c
index
e345a73
..
ae1c2da
100644
(file)
--- a/
util/res-test.c
+++ b/
util/res-test.c
@@
-1,6
+1,6
@@
-/* $Id: res-test.c,v 1.8 2002-08-02 19:26:57 adam Exp $
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
- Index Data Aps
+/* $Id: res-test.c,v 1.13 2007-01-15 15:10:26 adam Exp $
+ Copyright (C) 1995-2007
+ Index Data ApS
This file is part of the Zebra server.
This file is part of the Zebra server.
@@
-15,9
+15,9
@@
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
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
+
*/
*/
@@
-28,7
+28,7
@@
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
static void res_print (const char *name, const char *value)
{
static void res_print (const char *name, const char *value)
{
- logf (LOG_LOG, "%s=%s", name, value);
+ yaz_log (YLOG_LOG, "%s=%s", name, value);
}
int main(int argc, char **argv)
}
int main(int argc, char **argv)
@@
-41,24
+41,24
@@
int main(int argc, char **argv)
Res res;
int write_flag = 0;
Res res;
int write_flag = 0;
- log_init (LOG_DEFAULT_LEVEL, prog, NULL);
+ log_init (YLOG_DEFAULT_LEVEL, prog, NULL);
while ((ret = options ("wp:v", argv, argc, &arg)) != -2)
if (ret == 0)
resfile = arg;
else if (ret == 'v')
while ((ret = options ("wp:v", argv, argc, &arg)) != -2)
if (ret == 0)
resfile = arg;
else if (ret == 'v')
- log_init (LOG_ALL, prog, NULL);
+ log_init (YLOG_ALL, prog, NULL);
else if (ret == 'p')
prefix = arg;
else if (ret == 'w')
write_flag = 1;
else
{
else if (ret == 'p')
prefix = arg;
else if (ret == 'w')
write_flag = 1;
else
{
- logf (LOG_FATAL, "Unknown option '-%s'", arg);
+ yaz_log (YLOG_FATAL, "Unknown option '-%s'", arg);
exit (1);
}
if (!resfile)
{
exit (1);
}
if (!resfile)
{
- logf (LOG_FATAL, "No resource file given.");
+ yaz_log (YLOG_FATAL, "No resource file given.");
exit (1);
}
res = res_open (resfile);
exit (1);
}
res = res_open (resfile);
@@
-68,3
+68,11
@@
int main(int argc, char **argv)
res_close (res);
return 0;
}
res_close (res);
return 0;
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+