From ff37cbbf4d456e1849d966be5070792245907cc6 Mon Sep 17 00:00:00 2001 From: henning Date: Sat, 19 Apr 2014 15:58:12 +0000 Subject: [PATCH] now that if_snd is a proper ifqueue, this cast dies --- sys/net/hfsc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/hfsc.c b/sys/net/hfsc.c index 1ba80788c92..7cd6633e79c 100644 --- a/sys/net/hfsc.c +++ b/sys/net/hfsc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hfsc.c,v 1.8 2014/01/27 15:41:06 pelikan Exp $ */ +/* $OpenBSD: hfsc.c,v 1.9 2014/04/19 15:58:12 henning Exp $ */ /* * Copyright (c) 2012-2013 Henning Brauer @@ -166,7 +166,7 @@ hfsc_attach(struct ifnet *ifp) hif = malloc(sizeof(struct hfsc_if), M_DEVBUF, M_WAITOK|M_ZERO); hif->hif_eligible = hfsc_ellist_alloc(); - hif->hif_ifq = (struct ifqueue *)&ifp->if_snd; /* XXX cast temp */ + hif->hif_ifq = &ifp->if_snd; ifp->if_snd.ifq_hfsc = hif; hif->hif_class_tbl = malloc(tblsize, M_DEVBUF, M_WAITOK | M_ZERO); -- 2.20.1