projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaz-client: Loosen NS check for SRU YAZ-716
[yaz-moved-to-github.git]
/
client
/
admin.c
diff --git
a/client/admin.c
b/client/admin.c
index
ed9db68
..
de29207
100644
(file)
--- a/
client/admin.c
+++ b/
client/admin.c
@@
-238,10
+238,7
@@
int cmd_adm_import(const char *arg)
rec->u.intermediateFragment->u.notExternallyTagged = oct;
oct->len = status.st_size;
rec->u.intermediateFragment->u.notExternallyTagged = oct;
oct->len = status.st_size;
-#if OCT_SIZE
- oct->size = status.st_size;
-#endif
- oct->buf = (unsigned char *) odr_malloc (out, oct->len);
+ oct->buf = (char *) odr_malloc (out, oct->len);
if (fread(oct->buf, 1, oct->len, inf) != (size_t) oct->len)
{
printf("Incomplete read of file %s\n", fname);
if (fread(oct->buf, 1, oct->len, inf) != (size_t) oct->len)
{
printf("Incomplete read of file %s\n", fname);