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] tweak the ccdv program to handle files in subdirectories being built.
[elogind.git]
/
udevtest.c
diff --git
a/udevtest.c
b/udevtest.c
index 95b85dd8bed607170e690c8c8dd752e3a9aa60e0..df882d2d8cde6858c8f93f1c3b366bc0b7dbe636 100644
(file)
--- a/
udevtest.c
+++ b/
udevtest.c
@@
-29,6
+29,7
@@
#include "libsysfs/sysfs/libsysfs.h"
#include "udev.h"
#include "libsysfs/sysfs/libsysfs.h"
#include "udev.h"
+#include "udev_lib.h"
#include "udev_version.h"
#include "logging.h"
#include "namedev.h"
#include "udev_version.h"
#include "logging.h"
#include "namedev.h"
@@
-56,8
+57,7
@@
int main(int argc, char *argv[], char *envp[])
{
char *devpath;
char temp[NAME_SIZE];
{
char *devpath;
char temp[NAME_SIZE];
- char subsystem[] = "";
- const int fake = 1;
+ char *subsystem = "";
main_argv = argv;
main_envp = envp;
main_argv = argv;
main_envp = envp;
@@
-97,8
+97,11
@@
int main(int argc, char *argv[], char *envp[])
/* initialize the naming deamon */
namedev_init();
/* initialize the naming deamon */
namedev_init();
+ if (argv[2] != NULL)
+ subsystem = argv[2];
+
/* simulate node creation with fake flag */
/* simulate node creation with fake flag */
- udev_add_device(devpath, subsystem,
fake
);
+ udev_add_device(devpath, subsystem,
FAKE
);
exit:
return 0;
exit:
return 0;