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
Removed an unnecessary declaration that gave a warning
[idzebra-moved-to-github.git]
/
test
/
marcxml
/
t2.c
diff --git
a/test/marcxml/t2.c
b/test/marcxml/t2.c
index
b282708
..
5e98f33
100644
(file)
--- a/
test/marcxml/t2.c
+++ b/
test/marcxml/t2.c
@@
-1,4
+1,4
@@
-/* $Id: t2.c,v 1.1 2004-12-02 12:04:49 adam Exp $
+/* $Id: t2.c,v 1.2 2004-12-02 14:05:04 adam Exp $
Copyright (C) 2003,2004
Index Data Aps
Copyright (C) 2003,2004
Index Data Aps
@@
-26,6
+26,7
@@
int main(int argc, char **argv)
{
ZebraService zs = start_up(0, argc, argv);
ZebraHandle zh = zebra_open(zs);
{
ZebraService zs = start_up(0, argc, argv);
ZebraHandle zh = zebra_open(zs);
+ char path[256];
zebra_select_database(zh, "Default");
zebra_select_database(zh, "Default");
@@
-34,7
+35,9
@@
int main(int argc, char **argv)
zebra_set_resource(zh, "recordType", "grs.marcxml.record");
zebra_begin_trans(zh, 1);
zebra_set_resource(zh, "recordType", "grs.marcxml.record");
zebra_begin_trans(zh, 1);
- zebra_repository_update(zh, "sample-marc");
+
+ sprintf(path, "%.200s/sample-marc", get_srcdir());
+ zebra_repository_update(zh, path);
zebra_end_trans(zh);
zebra_commit(zh);
zebra_end_trans(zh);
zebra_commit(zh);