summaryrefslogtreecommitdiff
path: root/udev.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-01-19 19:44:24 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:17 -0700
commit765cbd97599d943adc73d03f4c91bd7cf7ef7fab (patch)
treeb6ce2967912c4bbcffeefec4e334d65c9abb5da9 /udev.h
parent74c73ef994f3ea8d013c33fe7be73e0c0c86977b (diff)
[PATCH] set default owner/group in db - update
I've edited the man page today, so this is alreay included :) Also a few more trivials: o added the defaults to udev.conf.in o removed class_dev from get_default_mode(), to match with Hanna's o changed size of mode_str to MODE_SIZE o changed a few char compares from from 0x00 to '\0'
Diffstat (limited to 'udev.h')
-rw-r--r--udev.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/udev.h b/udev.h
index 963f8d2516..e5c983a212 100644
--- a/udev.h
+++ b/udev.h
@@ -31,6 +31,7 @@
#define NAME_SIZE 100
#define OWNER_SIZE 30
#define GROUP_SIZE 30
+#define MODE_SIZE 8
struct udevice {
char name[NAME_SIZE];
@@ -67,7 +68,7 @@ extern char udev_db_filename[PATH_MAX+NAME_MAX];
extern char udev_permissions_filename[PATH_MAX+NAME_MAX];
extern char udev_config_filename[PATH_MAX+NAME_MAX];
extern char udev_rules_filename[PATH_MAX+NAME_MAX];
-extern char default_mode_str[NAME_MAX];
+extern char default_mode_str[MODE_SIZE];
extern char default_owner_str[OWNER_SIZE];
extern char default_group_str[GROUP_SIZE];