fix a jumbled conditional clang warns about; ok florian@
authornaddy <naddy@openbsd.org>
Tue, 30 May 2017 12:38:36 +0000 (12:38 +0000)
committernaddy <naddy@openbsd.org>
Tue, 30 May 2017 12:38:36 +0000 (12:38 +0000)
usr.sbin/slaacd/engine.c

index 329e62e..18dd4f2 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: engine.c,v 1.27 2017/05/29 08:59:42 florian Exp $     */
+/*     $OpenBSD: engine.c,v 1.28 2017/05/30 12:38:36 naddy Exp $       */
 
 /*
  * Copyright (c) 2017 Florian Obser <florian@openbsd.org>
@@ -482,7 +482,7 @@ engine_dispatch_frontend(int fd, short event, void *bula)
                                        need_refresh = 1;
                                }
 
-                               if (!iface->state == IF_DOWN &&
+                               if (iface->state != IF_DOWN &&
                                    imsg_ifinfo.running && need_refresh)
                                        start_probe(iface);