From cfed37836e37354fd3601ab9240b73b68a185742 Mon Sep 17 00:00:00 2001 From: Kip Macy Date: Sat, 13 Jun 2009 21:55:08 +0000 Subject: [PATCH] update backend_changed to reflect .m prototype --- sys/dev/xen/blkfront/blkfront.c | 4 +++- sys/dev/xen/netfront/netfront.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/dev/xen/blkfront/blkfront.c b/sys/dev/xen/blkfront/blkfront.c index 01493a6a8595..f73c81239f40 100644 --- a/sys/dev/xen/blkfront/blkfront.c +++ b/sys/dev/xen/blkfront/blkfront.c @@ -500,7 +500,7 @@ setup_blkring(device_t dev, struct blkfront_info *info) /** * Callback received when the backend's state changes. */ -static void +static int blkfront_backend_changed(device_t dev, XenbusState backend_state) { struct blkfront_info *info = device_get_softc(dev); @@ -542,6 +542,8 @@ blkfront_backend_changed(device_t dev, XenbusState backend_state) bdput(bd); #endif } + + return (0); } /* diff --git a/sys/dev/xen/netfront/netfront.c b/sys/dev/xen/netfront/netfront.c index 57e933429e92..571ecd0e3c0a 100644 --- a/sys/dev/xen/netfront/netfront.c +++ b/sys/dev/xen/netfront/netfront.c @@ -618,7 +618,7 @@ netfront_send_fake_arp(device_t dev, struct netfront_info *info) /** * Callback received when the backend's state changes. */ -static void +static int netfront_backend_changed(device_t dev, XenbusState newstate) { struct netfront_info *sc = device_get_softc(dev); @@ -646,6 +646,7 @@ netfront_backend_changed(device_t dev, XenbusState newstate) xenbus_set_state(dev, XenbusStateClosed); break; } + return (0); } static void