chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libudev: device - handle disk "device" link for partitions in deprecated sysfs layout
[elogind.git]
/
udev
/
udevadm-settle.c
diff --git
a/udev/udevadm-settle.c
b/udev/udevadm-settle.c
index d066ef90ce8d6dd5c9aca049e83aac4f15483349..a274e089d429e7ccf5c5b4fef4f7a8adfff62489 100644
(file)
--- a/
udev/udevadm-settle.c
+++ b/
udev/udevadm-settle.c
@@
-36,12
+36,12
@@
int udevadm_settle(struct udev *udev, int argc, char *argv[])
{
static const struct option options[] = {
int udevadm_settle(struct udev *udev, int argc, char *argv[])
{
static const struct option options[] = {
- { "timeout",
1
, NULL, 't' },
- { "help",
0
, NULL, 'h' },
+ { "timeout",
required_argument
, NULL, 't' },
+ { "help",
no_argument
, NULL, 'h' },
{}
};
int timeout = DEFAULT_TIMEOUT;
{}
};
int timeout = DEFAULT_TIMEOUT;
- struct udev_queue *udev_queue;
+ struct udev_queue *udev_queue
= NULL
;
int loop;
int rc = 0;
int loop;
int rc = 0;