diff options
author | Miles Bader <miles@gnu.org> | 1995-08-13 14:58:57 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-08-13 14:58:57 +0000 |
commit | 03dd244090e25702837b4891002c9fc2efcc50d1 (patch) | |
tree | 8cb0579f0f8a9afe754f8be2c16c435bdb7f64da | |
parent | 3632248b212af27b158b899d6156354dd32614ee (diff) |
(trivfs_peropen_create_hook): This now returns an error_t.
(open_hook): And thus this does as well.
-rw-r--r-- | devio/devio.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/devio/devio.c b/devio/devio.c index 6273b98f..13e98b90 100644 --- a/devio/devio.c +++ b/devio/devio.c @@ -219,12 +219,14 @@ check_open_hook (struct trivfs_control *trivfs_control, return err; } -static void +static error_t open_hook(struct trivfs_peropen *peropen) { struct dev *dev = device; if (dev) - open_create(dev, (struct open **)&peropen->hook); + return open_create(dev, (struct open **)&peropen->hook); + else + return 0; } static void @@ -350,7 +352,7 @@ error_t (*trivfs_check_open_hook)(struct trivfs_control *trivfs_control, /* If this variable is set, it is called every time a new peropen structure is created and initialized. */ -void (*trivfs_peropen_create_hook)(struct trivfs_peropen *) = open_hook; +error_t (*trivfs_peropen_create_hook)(struct trivfs_peropen *) = open_hook; /* If this variable is set, it is called every time a peropen structure is about to be destroyed. */ |