aboutsummaryrefslogtreecommitdiffstats
path: root/udev.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-03-12 21:41:57 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:53:17 -0700
commite6764498e7592f216a1895eacc485448fa4a1660 (patch)
tree11c81e7174f0bcb5774568f569985589584fbc19 /udev.c
parent319112e295bbf1ed5d86389190abbe24ce251b14 (diff)
downloadudev-e6764498e7592f216a1895eacc485448fa4a1660.tar.gz
[PATCH] correct enum device_type
Diffstat (limited to 'udev.c')
-rw-r--r--udev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/udev.c b/udev.c
index bf2eb373..8ce813fb 100644
--- a/udev.c
+++ b/udev.c
@@ -154,13 +154,13 @@ int main(int argc, char *argv[], char *envp[])
if (udev_log)
setenv("UDEV_LOG", "1", 1);
- if (udev.type == BLOCK || udev.type == CLASS || udev.type == NET) {
+ if (udev.type == DEV_BLOCK || udev.type == DEV_CLASS || udev.type == DEV_NET) {
if (strcmp(action, "add") == 0) {
/* wait for sysfs and possibly add node */
dbg("udev add");
/* skip subsystems without "dev", but handle net devices */
- if (udev.type != NET && subsystem_expect_no_dev(udev.subsystem)) {
+ if (udev.type != DEV_NET && subsystem_expect_no_dev(udev.subsystem)) {
dbg("don't care about '%s' devices", udev.subsystem);
goto hotplug;
}
@@ -203,7 +203,7 @@ int main(int argc, char *argv[], char *envp[])
if (udev_dev_d)
udev_multiplex_directory(&udev, DEVD_DIR, DEVD_SUFFIX);
}
- } else if (udev.type == PHYSDEV) {
+ } else if (udev.type == DEV_DEVICE) {
if (strcmp(action, "add") == 0) {
/* wait for sysfs */
dbg("devices add");