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] Create a udev.rules.examples file to hold odd udev.rules
[elogind.git]
/
udev.c
diff --git
a/udev.c
b/udev.c
index 9f10cc212539466e5e03edc05016976d90069e24..f3fab18b29e3fe000f214f38d0cfd0dfc8ee88fa 100644
(file)
--- a/
udev.c
+++ b/
udev.c
@@
-26,6
+26,7
@@
#include <errno.h>
#include <ctype.h>
#include <signal.h>
#include <errno.h>
#include <ctype.h>
#include <signal.h>
+#include <sysfs/libsysfs.h>
#include "udev.h"
#include "udev_version.h"
#include "udev.h"
#include "udev_version.h"
@@
-33,7
+34,6
@@
#include "logging.h"
#include "namedev.h"
#include "udevdb.h"
#include "logging.h"
#include "namedev.h"
#include "udevdb.h"
-#include "libsysfs/libsysfs.h"
/* global variables */
char **main_argv;
/* global variables */
char **main_argv;
@@
-164,7
+164,7
@@
static int udev_hotplug(int argc, char **argv)
namedev_init();
if (strcmp(action, "add") == 0)
namedev_init();
if (strcmp(action, "add") == 0)
- retval = udev_add_device(devpath, subsystem);
+ retval = udev_add_device(devpath, subsystem
, 0
);
else if (strcmp(action, "remove") == 0)
retval = udev_remove_device(devpath, subsystem);
else if (strcmp(action, "remove") == 0)
retval = udev_remove_device(devpath, subsystem);