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] trivial clenaup of namedev code
[elogind.git]
/
udevtest.c
diff --git
a/udevtest.c
b/udevtest.c
index 388818d495ce25a7cf5635d71cc7d4ef6bd3e481..4e02ac7dbc2b4f351947c1793a31d68ba405a11e 100644
(file)
--- a/
udevtest.c
+++ b/
udevtest.c
@@
-37,7
+37,6
@@
#ifdef LOG
#ifdef LOG
-unsigned char logname[LOGNAME_SIZE];
void log_message (int level, const char *format, ...)
{
va_list args;
void log_message (int level, const char *format, ...)
{
va_list args;
@@
-95,7
+94,7
@@
int main(int argc, char *argv[], char *envp[])
udev_init_device(&udev, devpath, subsystem);
/* skip subsystems without "dev", but handle net devices */
udev_init_device(&udev, devpath, subsystem);
/* skip subsystems without "dev", but handle net devices */
- if (udev.type !=
'n'
&& subsystem_expect_no_dev(udev.subsystem)) {
+ if (udev.type !=
NET
&& subsystem_expect_no_dev(udev.subsystem)) {
info("don't care about '%s' devices", udev.subsystem);
return 2;
}
info("don't care about '%s' devices", udev.subsystem);
return 2;
}