X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fwaislen.c;h=17a97f1d787febf71e3c3fb2bc04165c609ad38d;hp=e065c65d4a12669f66a71350a075e3f310aef082;hb=fe42f72dc30321041420cf2d1a83867b1c450f38;hpb=8d691989077a0addcbd840d769dce6700f3d9622 diff --git a/src/waislen.c b/src/waislen.c index e065c65..17a97f1 100644 --- a/src/waislen.c +++ b/src/waislen.c @@ -1,21 +1,21 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. - * - * $Id: waislen.c,v 1.5 2007-01-03 08:42:15 adam Exp $ */ /** * \file waislen.c * \brief Implements WAIS package handling */ +#if HAVE_CONFIG_H +#include +#endif #include #include -#include /* * Return length of WAIS package or 0 */ -int completeWAIS(const unsigned char *buf, int len) +int completeWAIS(const char *buf, int len) { int i, lval = 0; @@ -34,6 +34,7 @@ int completeWAIS(const unsigned char *buf, int len) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab