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 | 83ef87c257694bb8804a39ab6a5c1832b463fd4e (patch) | |
| tree | fbf7e9814ca4adffb09bf93268370f3e85402d87 /devio | |
| parent | 17346364171a6017001fbea93e8cac2b92346c7e (diff) | |
(trivfs_peropen_create_hook): This now returns an error_t.
(open_hook): And thus this does as well.
Diffstat (limited to 'devio')
| -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. */ |
