aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilles Chehade <gilles@poolp.org>2019-03-22 14:31:56 +0100
committerGilles Chehade <gilles@poolp.org>2019-03-22 14:31:56 +0100
commitccab5bf37e49ac02782413ee150f76daa39ccc31 (patch)
tree973cf6944873f103ac7a3c073793bd2ec680f11c
parentmove smtpscript/ to OpenSMTPD (diff)
downloadOpenSMTPD-ccab5bf37e49ac02782413ee150f76daa39ccc31.tar.xz
OpenSMTPD-ccab5bf37e49ac02782413ee150f76daa39ccc31.zip
size is never reducedHEADmaster
-rw-r--r--smtpscript/parse.y22
1 files changed, 1 insertions, 21 deletions
diff --git a/smtpscript/parse.y b/smtpscript/parse.y
index 10ddb90e..47a0f35c 100644
--- a/smtpscript/parse.y
+++ b/smtpscript/parse.y
@@ -113,7 +113,7 @@ typedef struct {
%token ERROR ARROW
%token <v.string> STRING
%token <v.number> NUMBER
-%type <v.number> quantifier port duration size
+%type <v.number> quantifier port duration
%type <v.op> statement block
%%
@@ -171,26 +171,6 @@ duration : NUMBER quantifier {
}
;
-size : NUMBER {
- if ($1 < 0) {
- yyerror("invalid size: %" PRId64, $1);
- YYERROR;
- }
- $$ = $1;
- }
- | STRING {
- long long result;
-
- if (scan_scaled($1, &result) == -1 || result < 0) {
- yyerror("invalid size: %s", $1);
- YYERROR;
- }
- free($1);
-
- $$ = result;
- }
- ;
-
port : PORT STRING {
struct servent *servent;