-/*
- * Copyright (c) 2004, Index Data.
+/* This file is part of the yazpp toolkit.
+ * Copyright (C) 1998-2012 Index Data and Mike Taylor
* See the file LICENSE for details.
- *
- * $Id: zlint.cpp,v 1.12 2005-09-22 12:40:45 adam Exp $
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdio.h>
#include <stdarg.h>
int m_test_reported;
};
-Zlint::Zlint(IPDU_Observable *the_PDU_Observable) :
+Zlint::Zlint(IPDU_Observable *the_PDU_Observable) :
Z_Assoc(the_PDU_Observable)
-
+
{
m_PDU_Observable = the_PDU_Observable;
m_host = 0;
Z_ReferenceId *Zlint::mk_refid(const char *buf, int len)
{
- Z_ReferenceId *id =
+ Z_ReferenceId *id =
(Z_ReferenceId *) odr_malloc(odr_encode(), sizeof(*id));
id->size = id->len = len;
id->buf = (unsigned char*) odr_malloc(odr_encode(), len);
int Zlint::initResponseGetVersion(Z_InitResponse *init)
{
int no = 0;
- int off = 0;
int i;
for (i = 0; i<12; i++)
if (ODR_MASK_GET(init->protocolVersion, no))
{
no = i+1;
}
- else
- off = 1;
return no;
}
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab