update backend_changed to reflect .m prototype

This commit is contained in:
Kip Macy 2009-06-13 21:55:08 +00:00
parent 960da93430
commit cfed37836e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194130
2 changed files with 5 additions and 2 deletions

View File

@ -500,7 +500,7 @@ setup_blkring(device_t dev, struct blkfront_info *info)
/** /**
* Callback received when the backend's state changes. * Callback received when the backend's state changes.
*/ */
static void static int
blkfront_backend_changed(device_t dev, XenbusState backend_state) blkfront_backend_changed(device_t dev, XenbusState backend_state)
{ {
struct blkfront_info *info = device_get_softc(dev); struct blkfront_info *info = device_get_softc(dev);
@ -542,6 +542,8 @@ blkfront_backend_changed(device_t dev, XenbusState backend_state)
bdput(bd); bdput(bd);
#endif #endif
} }
return (0);
} }
/* /*

View File

@ -618,7 +618,7 @@ netfront_send_fake_arp(device_t dev, struct netfront_info *info)
/** /**
* Callback received when the backend's state changes. * Callback received when the backend's state changes.
*/ */
static void static int
netfront_backend_changed(device_t dev, XenbusState newstate) netfront_backend_changed(device_t dev, XenbusState newstate)
{ {
struct netfront_info *sc = device_get_softc(dev); 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); xenbus_set_state(dev, XenbusStateClosed);
break; break;
} }
return (0);
} }
static void static void