diff options
author | Ed Schouten <ed@FreeBSD.org> | 2012-02-10 12:35:57 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2012-02-10 12:35:57 +0000 |
commit | 7870adb640dfa24455291c665ac965046e5622e9 (patch) | |
tree | 38fefd1e5bde255db2d3eab529d481ce373dec71 /sys/compat/linux/linux_util.c | |
parent | 92858a92e005e16315da73a8ff5772ca8542def2 (diff) |
Remove direct access to si_name.
Code should just use the devtoname() function to obtain the name of a
character device. Also add const keywords to pieces of code that need it
to build properly.
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=231378
Diffstat (limited to 'sys/compat/linux/linux_util.c')
-rw-r--r-- | sys/compat/linux/linux_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_util.c b/sys/compat/linux/linux_util.c index 3412c370b419..3c26f88d6983 100644 --- a/sys/compat/linux/linux_util.c +++ b/sys/compat/linux/linux_util.c @@ -124,7 +124,7 @@ linux_driver_get_name_dev(device_t dev) } int -linux_driver_get_major_minor(char *node, int *major, int *minor) +linux_driver_get_major_minor(const char *node, int *major, int *minor) { struct device_element *de; |