From df47ba04d7f4670579a740ef0909f27b422a5297 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Fri, 9 Feb 2007 14:12:33 +0000 Subject: [PATCH] lint and docs git-svn-id: file:///svn/unbound/trunk@87 be551aaa-1e26-0410-a405-d3ace91eadb9 --- testcode/replay.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/testcode/replay.c b/testcode/replay.c index 82c304edf..6678cdef1 100644 --- a/testcode/replay.c +++ b/testcode/replay.c @@ -47,8 +47,11 @@ /** max length of lines in file */ #define MAX_LINE_LEN 10240 -/** parse keyword in string. true if found, false if not. - * if found, the line is advanced to after the keyword. */ +/** parse keyword in string. + * @param line: if found, the line is advanced to after the keyword. + * @param keyword: string. + * @return: true if found, false if not. + */ static int parse_keyword(char** line, char* keyword) { size_t len = (size_t)strlen(keyword); @@ -235,7 +238,7 @@ replay_scenario_read(FILE* in) ldns_rdf* prev = NULL; line[MAX_LINE_LEN-1]=0; - while(fgets(line, sizeof(line)-1, in)) { + while(fgets(line, MAX_LINE_LEN-1, in)) { parse=line; lineno++; while(isspace(*parse))