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
Remove deprecated functions yaz_uri_val ..
[yaz-moved-to-github.git]
/
src
/
srwutil.c
diff --git
a/src/srwutil.c
b/src/srwutil.c
index
83172d5
..
fdf9944
100644
(file)
--- a/
src/srwutil.c
+++ b/
src/srwutil.c
@@
-141,13
+141,6
@@
static void yaz_srw_decodeauth(Z_SRW_PDU *sr, Z_HTTP_Request *hreq,
}
}
}
}
-void yaz_uri_val_int(const char *path, const char *name, ODR o, Odr_int **intp)
-{
- const char *v = yaz_uri_val(path, name, o);
- if (v)
- *intp = odr_intdup(o, atoi(v));
-}
-
void yaz_mk_srw_diagnostic(ODR o, Z_SRW_diagnostic *d,
const char *uri, const char *message,
const char *details)
void yaz_mk_srw_diagnostic(ODR o, Z_SRW_diagnostic *d,
const char *uri, const char *message,
const char *details)
@@
-246,9
+239,7
@@
static void grab_charset(ODR o, const char *content_type, char **charset)
while (i < 20 && charset_p[i] &&
!strchr("; \n\r", charset_p[i]))
i++;
while (i < 20 && charset_p[i] &&
!strchr("; \n\r", charset_p[i]))
i++;
- *charset = (char*) odr_malloc(o, i+1);
- memcpy(*charset, charset_p, i);
- (*charset)[i] = '\0';
+ *charset = odr_strdupn(o, charset_p, i);
}
}
}
}
}
}