]> granicus.if.org Git - libnl/commitdiff
Priority of the '<' operator is higher than that of the '=' operator
authormaksqwe <maksqwe1@ukr.net>
Fri, 23 Aug 2013 10:39:03 +0000 (13:39 +0300)
committerThomas Graf <tgraf@suug.ch>
Mon, 26 Aug 2013 08:06:30 +0000 (10:06 +0200)
Signed-off-by: maksqwe <maksqwe1@ukr.net>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
src/nl-link-set.c

index 3178a9887ab66307b6222f8cd03f0640ceae2d39..5ff1e9d31758a1644b41236c5c27d49617f16bb9 100644 (file)
@@ -56,7 +56,7 @@ static void set_cb(struct nl_object *obj, void *arg)
        };
        int err;
 
-       if ((err = rtnl_link_change(sock, link, change, 0) < 0))
+       if ((err = rtnl_link_change(sock, link, change, 0)) < 0)
                nl_cli_fatal(err, "Unable to change link: %s",
                             nl_geterror(err));