chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
fc89fe7
)
udevtrigger: remove unused longindex
author
Kay Sievers
<kay.sievers@suse.de>
Sun, 3 Sep 2006 01:36:20 +0000
(
03:36
+0200)
committer
Kay Sievers
<kay.sievers@suse.de>
Sun, 3 Sep 2006 01:36:20 +0000
(
03:36
+0200)
udevtrigger.c
patch
|
blob
|
history
diff --git
a/udevtrigger.c
b/udevtrigger.c
index 9a1e82887bc22b345ea1aeb7068835464a24af97..571bcadfc5323a844fdb8b260202d45ebe3a8c0b 100644
(file)
--- a/
udevtrigger.c
+++ b/
udevtrigger.c
@@
-468,7
+468,6
@@
int main(int argc, char *argv[], char *envp[])
{
int failed = 0;
int option;
{
int failed = 0;
int option;
- int longindex;
struct option options[] = {
{ "verbose", 0, NULL, 'v' },
{ "dry-run", 0, NULL, 'n' },
struct option options[] = {
{ "verbose", 0, NULL, 'v' },
{ "dry-run", 0, NULL, 'n' },
@@
-487,7
+486,7
@@
int main(int argc, char *argv[], char *envp[])
sysfs_init();
while (1) {
sysfs_init();
while (1) {
- option = getopt_long(argc, argv, "vnFhs:S:a:A:", options,
&longindex
);
+ option = getopt_long(argc, argv, "vnFhs:S:a:A:", options,
NULL
);
if (option == -1)
break;
if (option == -1)
break;
@@
-518,8
+517,8
@@
int main(int argc, char *argv[], char *envp[])
" --verbose print the list of devices which will be triggered\n"
" --dry-run do not actually trigger the event\n"
" --retry-failed trigger only the events which are failed during a previous run\n"
" --verbose print the list of devices which will be triggered\n"
" --dry-run do not actually trigger the event\n"
" --retry-failed trigger only the events which are failed during a previous run\n"
- " --subsystem-match
select only devices from the specified subystem\n"
- " --subsystem-nomatch
exclude devices from the specified subystem\n"
+ " --subsystem-match
=<subsystem>
select only devices from the specified subystem\n"
+ " --subsystem-nomatch
=<subsystem>
exclude devices from the specified subystem\n"
" --attr-match=<file[=<value>]> select only devices with a matching sysfs attribute\n"
" --attr-nomatch=<file[=<value>]> exclude devices with a matching sysfs attribute\n"
" --help print this text\n"
" --attr-match=<file[=<value>]> select only devices with a matching sysfs attribute\n"
" --attr-nomatch=<file[=<value>]> exclude devices with a matching sysfs attribute\n"
" --help print this text\n"