From dfdda3b344e525f4fdb5e2c07ac63b52e501941f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 1 Mar 2011 14:22:41 +0100 Subject: Add new functions to convert iso time strings. --- common/tlv.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'common/tlv.c') diff --git a/common/tlv.c b/common/tlv.c index 54ef6fca6..61f770e93 100644 --- a/common/tlv.c +++ b/common/tlv.c @@ -238,14 +238,14 @@ _parse_ber_header (unsigned char const **buffer, size_t *size, is the pointer to the S-expression and BUFLEN is a pointer to the length of this S-expression (used to validate the syntax). Both are updated to reflect the new position. The token itself is - returned as a pointer into the orginal buffer at TOK and TOKLEN. + returned as a pointer into the original buffer at TOK and TOKLEN. If a parentheses is the next token, TOK will be set to NULL. - TOKLEN is checked to be within the bounds. On error a error code - is returned and all pointers should are not guaranteed to point to - a meanigful value. DEPTH should be initialized to 0 and will + TOKLEN is checked to be within the bounds. On error an error code + is returned and no pointer is not guaranteed to point to + a meaningful value. DEPTH should be initialized to 0 and will reflect on return the actual depth of the tree. To detect the end of the S-expression it is advisable to check DEPTH after a - successful return: + successful return. depth = 0; while (!(err = parse_sexp (&buf, &buflen, &depth, &tok, &toklen)) -- cgit v1.2.3