* Copyright (c) 1998-2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-my-client.cpp,v 1.23 2006-03-29 13:14:16 adam Exp $
+ * $Id: yaz-my-client.cpp,v 1.24 2006-10-10 13:31:49 adam Exp $
*/
#include <stdlib.h>
if (!(*etype->fun)(odr_decode(), (char **)&rr, 0, 0))
{
odr_perror(odr_decode(), "Decoding constructed record.");
- fprintf(stderr, "[Near %d]\n", odr_offset(odr_decode()));
+ fprintf(stderr, "[Near %ld]\n", (long) odr_offset(odr_decode()));
fprintf(stderr, "Packet dump:\n---------\n");
odr_dumpBER(stderr, (char*)record->u.octet_aligned->buf,
record->u.octet_aligned->len);
* Copyright (c) 1998-2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-z-assoc.cpp,v 1.39 2006-03-29 13:14:18 adam Exp $
+ * $Id: yaz-z-assoc.cpp,v 1.40 2006-10-10 13:31:49 adam Exp $
*/
#include <assert.h>
if (!z_GDU(m_odr_in, &apdu, 0, 0))
{
const char *element = odr_getelement(m_odr_in);
- yaz_log(YLOG_LOG, "PDU decode failed '%s' near byte %d. Element %s",
+ yaz_log(YLOG_LOG, "PDU decode failed '%s' near byte %ld. Element %s",
odr_errmsg(odr_geterror(m_odr_in)),
- odr_offset(m_odr_in),
+ (long) odr_offset(m_odr_in),
element ? element : "unknown");
yaz_log(YLOG_LOG, "PDU dump:");
odr_dumpBER(yaz_log_file(), buf, len);