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
Set SRU request structure's username/password from connection options.
[yaz-moved-to-github.git]
/
src
/
waislen.c
diff --git
a/src/waislen.c
b/src/waislen.c
index
b674e2a
..
e065c65
100644
(file)
--- a/
src/waislen.c
+++ b/
src/waislen.c
@@
-1,8
+1,8
@@
/*
/*
- * Copyright (c) 1995-2004, Index Data.
+ * Copyright (C) 1995-2007, Index Data ApS
* See the file LICENSE for details.
*
* See the file LICENSE for details.
*
- * $Id: waislen.c,v 1.2 2004-10-15 00:19:01 adam Exp $
+ * $Id: waislen.c,v 1.5 2007-01-03 08:42:15 adam Exp $
*/
/**
* \file waislen.c
*/
/**
* \file waislen.c
@@
-20,14
+20,22
@@
int completeWAIS(const unsigned char *buf, int len)
int i, lval = 0;
if (len < 25)
int i, lval = 0;
if (len < 25)
- return 0;
+ return 0;
if (*buf != '0')
if (*buf != '0')
- return 0;
+ return 0;
/* calculate length */
for (i = 0; i < 10; i++)
/* calculate length */
for (i = 0; i < 10; i++)
- lval = lval * 10 + (buf[i] - '0');
+ lval = lval * 10 + (buf[i] - '0');
lval += 25;
if (len >= lval)
lval += 25;
if (len >= lval)
- return lval;
+ return lval;
return 0;
}
return 0;
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+