]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
lint and docs
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 9 Feb 2007 14:12:33 +0000 (14:12 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 9 Feb 2007 14:12:33 +0000 (14:12 +0000)
git-svn-id: file:///svn/unbound/trunk@87 be551aaa-1e26-0410-a405-d3ace91eadb9

testcode/replay.c

index 82c304edf9aace4d3e1e273b50c2dd211a6ea162..6678cdef14267f44c020815cb6faca14a34ce7f6 100644 (file)
 /** 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))