diff options
author | 2014-04-19 15:58:12 +0000 | |
---|---|---|
committer | 2014-04-19 15:58:12 +0000 | |
commit | ff37cbbf4d456e1849d966be5070792245907cc6 (patch) | |
tree | 5036126a1beb44cc6b76a99ffbf8b69ec64e92b2 | |
parent | ifnet's if_snd becomes a regular ifqueue instead of ifaltq, the need to (diff) | |
download | wireguard-openbsd-ff37cbbf4d456e1849d966be5070792245907cc6.tar.xz wireguard-openbsd-ff37cbbf4d456e1849d966be5070792245907cc6.zip |
now that if_snd is a proper ifqueue, this cast dies
-rw-r--r-- | sys/net/hfsc.c | 4 |
1 files 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 <henning@openbsd.org> @@ -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); |