chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] correct enum device_type
[elogind.git]
/
udev_utils.c
diff --git
a/udev_utils.c
b/udev_utils.c
index afa9790fdc6aa17fc0e85bb0b02cf230745dbf97..b650096593308f7e0e7e6c67ff64c5895940cc55 100644
(file)
--- a/
udev_utils.c
+++ b/
udev_utils.c
@@
-53,13
+53,13
@@
int udev_init_device(struct udevice *udev, const char* devpath, const char *subs
no_trailing_slash(udev->devpath);
if (strncmp(udev->devpath, "/block/", 7) == 0)
no_trailing_slash(udev->devpath);
if (strncmp(udev->devpath, "/block/", 7) == 0)
- udev->type = BLOCK;
+ udev->type =
DEV_
BLOCK;
else if (strncmp(udev->devpath, "/class/net/", 11) == 0)
else if (strncmp(udev->devpath, "/class/net/", 11) == 0)
- udev->type = NET;
+ udev->type =
DEV_
NET;
else if (strncmp(udev->devpath, "/class/", 7) == 0)
else if (strncmp(udev->devpath, "/class/", 7) == 0)
- udev->type = CLASS;
+ udev->type =
DEV_
CLASS;
else if (strncmp(udev->devpath, "/devices/", 9) == 0)
else if (strncmp(udev->devpath, "/devices/", 9) == 0)
- udev->type =
PHYSDEV
;
+ udev->type =
DEV_DEVICE
;
/* get kernel name */
pos = strrchr(udev->devpath, '/');
/* get kernel name */
pos = strrchr(udev->devpath, '/');