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
Version 5.9.0
[yaz-moved-to-github.git]
/
src
/
odr_any.c
diff --git
a/src/odr_any.c
b/src/odr_any.c
index
96e72b9
..
4cf196b
100644
(file)
--- a/
src/odr_any.c
+++ b/
src/odr_any.c
@@
-1,8
+1,6
@@
-/*
- * Copyright (C) 1995-2005, Index Data ApS
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) Index Data
* See the file LICENSE for details.
* See the file LICENSE for details.
- *
- * $Id: odr_any.c,v 1.4 2005-01-15 19:47:14 adam Exp $
*/
/**
*/
/**
@@
-25,17
+23,26
@@
int odr_any(ODR o, Odr_any **p, int opt, const char *name)
{
if (o->error)
int odr_any(ODR o, Odr_any **p, int opt, const char *name)
{
if (o->error)
- return 0;
+ return 0;
if (o->direction == ODR_PRINT)
{
if (o->direction == ODR_PRINT)
{
- odr_prname(o, name);
- odr_printf(o, "ANY (len=%d)\n", (*p)->len);
- return 1;
+ odr_prname(o, name);
+ odr_printf(o, "ANY (len=%d)\n", (*p)->len);
+ return 1;
}
if (o->direction == ODR_DECODE)
}
if (o->direction == ODR_DECODE)
- *p = (Odr_oct *)odr_malloc(o, sizeof(**p));
+ *p = (Odr_oct *)odr_malloc(o, sizeof(**p));
if (ber_any(o, p))
if (ber_any(o, p))
- return 1;
+ return 1;
*p = 0;
return odr_missing(o, opt, name);
}
*p = 0;
return odr_missing(o, opt, name);
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * c-file-style: "Stroustrup"
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+