]> git.ipfire.org Git - thirdparty/libnftnl.git/commitdiff
expr: limit: s/seconds/second/
authorFlorian Westphal <fw@strlen.de>
Tue, 22 Oct 2013 13:33:41 +0000 (15:33 +0200)
committerFlorian Westphal <fw@strlen.de>
Tue, 22 Oct 2013 13:33:41 +0000 (15:33 +0200)
my fault, spotted by Phil Oester.

Signed-off-by: Florian Westphal <fw@strlen.de>
src/expr/limit.c

index ef7641805d2b772dfcc561cad0e169f3fb398c7f..4fcf7987b52ba186043ec05e5d17f7d8f801563c 100644 (file)
@@ -167,7 +167,7 @@ static int nft_rule_expr_limit_xml_parse(struct nft_rule_expr *e, mxml_node_t *t
 static const char *get_unit(uint64_t u)
 {
        switch (u) {
-       case 1: return "seconds";
+       case 1: return "second";
        case 60: return "minute";
        case 60 * 60: return "hour";
        case 60 * 60 * 24: return "day";