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
Added wrbuf_put - same as wrbuf_puts but void return value.
[yaz-moved-to-github.git]
/
src
/
query-charset.c
diff --git
a/src/query-charset.c
b/src/query-charset.c
index
2001315
..
94a1901
100644
(file)
--- a/
src/query-charset.c
+++ b/
src/query-charset.c
@@
-1,8
+1,6
@@
-/*
- * Copyright (C) 1995-2007, Index Data ApS
- * All rights reserved.
- *
- * $Id: query-charset.c,v 1.1 2007-03-21 19:47:28 adam Exp $
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2008 Index Data
+ * See the file LICENSE for details.
*/
/** \file query-charset.c
*/
/** \file query-charset.c
@@
-12,10
+10,8
@@
#include <stdio.h>
#include <assert.h>
#include <stdio.h>
#include <assert.h>
-#include <yaz/proto.h>
+#include <yaz/query-charset.h>
#include <yaz/wrbuf.h>
#include <yaz/wrbuf.h>
-#include <yaz/odr.h>
-#include <yaz/yaz-iconv.h>
void yaz_query_charset_convert_buf(char *buf_in, int len_in,
char **buf_out, int *len_out,
void yaz_query_charset_convert_buf(char *buf_in, int len_in,
char **buf_out, int *len_out,
@@
-27,7
+23,7
@@
void yaz_query_charset_convert_buf(char *buf_in, int len_in,
*len_out = wrbuf_len(wrbuf);
if (*len_out == 0)
*len_out = wrbuf_len(wrbuf);
if (*len_out == 0)
- { // we assume conversion failed
+ { /* we assume conversion failed */
*buf_out = buf_in;
*len_out = len_in;
}
*buf_out = buf_in;
*len_out = len_in;
}