diff options
Diffstat (limited to 'freebsd/sys/fs/devfs/devfs_int.h')
-rw-r--r-- | freebsd/sys/fs/devfs/devfs_int.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/freebsd/sys/fs/devfs/devfs_int.h b/freebsd/sys/fs/devfs/devfs_int.h index 1f4f3e69..670aba16 100644 --- a/freebsd/sys/fs/devfs/devfs_int.h +++ b/freebsd/sys/fs/devfs/devfs_int.h @@ -72,7 +72,7 @@ struct cdev_priv { #endif /* __rtems__ */ }; -#define cdev2priv(c) member2struct(cdev_priv, cdp_c, c) +#define cdev2priv(c) __containerof(c, struct cdev_priv, cdp_c) struct cdev *devfs_alloc(int); int devfs_dev_exists(const char *); |