]> Git Repo - qemu.git/blobdiff - net/filter.c
hw/s390x: Include the tod-qemu also for builds with --disable-tcg
[qemu.git] / net / filter.c
index 888fe6dd939a3dfeb0144bbb6ade028e3bd7953d..2fd7d7d66318836c77907e4d84408d4557de7f26 100644 (file)
@@ -179,7 +179,7 @@ static void netfilter_init(Object *obj)
                             netfilter_get_netdev_id, netfilter_set_netdev_id,
                             NULL);
     object_property_add_enum(obj, "queue", "NetFilterDirection",
-                             NetFilterDirection_lookup,
+                             &NetFilterDirection_lookup,
                              netfilter_get_direction, netfilter_set_direction,
                              NULL);
     object_property_add_str(obj, "status",
@@ -239,7 +239,7 @@ static void netfilter_finalize(Object *obj)
     }
 
     if (nf->netdev && !QTAILQ_EMPTY(&nf->netdev->filters) &&
-        nf->next.tqe_prev) {
+        QTAILQ_IN_USE(nf, next)) {
         QTAILQ_REMOVE(&nf->netdev->filters, nf, next);
     }
     g_free(nf->netdev_id);
This page took 0.024226 seconds and 4 git commands to generate.