aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;