mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-02 14:28:45 +02:00
review comments. updated ldns tarball with 1.6.2.
git-svn-id: file:///svn/unbound/trunk@1898 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
+3
-2
@@ -243,7 +243,7 @@ read_assign_step(char* remain, struct replay_moment* mom)
|
||||
fatal_exit("cannot parse assign: %s", remain);
|
||||
mom->variable = strdup(buf);
|
||||
if(eq != '=')
|
||||
fatal_exit("no = in assign: %s", remain);
|
||||
fatal_exit("no '=' in assign: %s", remain);
|
||||
remain += skip;
|
||||
if(remain[0]) remain[strlen(remain)-1]=0; /* remove newline */
|
||||
mom->string = strdup(remain);
|
||||
@@ -308,7 +308,8 @@ replay_moment_read(char* remain, FILE* in, const char* name, int* lineno,
|
||||
remain++;
|
||||
mom->string = strdup(remain);
|
||||
if(!mom->string) fatal_exit("out of memory");
|
||||
mom->string[strlen(mom->string)-1]=0;
|
||||
if(strlen(mom->string)>0)
|
||||
mom->string[strlen(mom->string)-1]=0;
|
||||
remain += strlen(mom->string);
|
||||
}
|
||||
} else if(parse_keyword(&remain, "CHECK_AUTOTRUST")) {
|
||||
|
||||
+1
-1
@@ -88,7 +88,7 @@
|
||||
* o number is that number.
|
||||
* o ${variables and arithmetic }
|
||||
* o +, -, / and *. Note, evaluated left-to-right. Use ${} for brackets.
|
||||
* So again, no precedence rules, so 2+3*4 === ${2+3}*4 === 20.
|
||||
* So again, no precedence rules, so 2+3*4 == ${2+3}*4 = 20.
|
||||
* Do 2+${3*4} to get 24.
|
||||
* o ${function params}
|
||||
* o ${time} is the current time for the simulated unbound.
|
||||
|
||||
Reference in New Issue
Block a user