From: Ted Lemon Date: Sat, 18 Mar 2000 03:32:53 +0000 (+0000) Subject: Add the numeric operators to is_numeric_expression. X-Git-Tag: V3-BETA-2-PATCH-1~280 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bcad76189c7b2d13515bcd02f18145ccc1fed34;p=thirdparty%2Fdhcp.git Add the numeric operators to is_numeric_expression. --- diff --git a/common/tree.c b/common/tree.c index 207e6d4d2..ac44e4b0d 100644 --- a/common/tree.c +++ b/common/tree.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: tree.c,v 1.80 2000/03/18 02:15:37 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: tree.c,v 1.81 2000/03/18 03:32:53 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -2709,7 +2709,12 @@ int is_numeric_expression (expr) expr -> op == expr_extract_int32 || expr -> op == expr_const_int || expr -> op == expr_lease_time || - expr -> op == expr_dns_transaction); + expr -> op == expr_dns_transaction || + expr -> op == expr_add || + expr -> op == expr_subtract || + expr -> op == expr_multiply || + expr -> op == expr_divide || + expr -> op == expr_remainder); } int is_compound_expression (expr)