projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68da321
)
test-libudev: make "-m" equivalent to "--monitor"
author
Douglas Christman
<DouglasChristman@gmail.com>
Wed, 28 Feb 2018 01:28:50 +0000
(20:28 -0500)
committer
Douglas Christman
<DouglasChristman@gmail.com>
Thu, 1 Mar 2018 13:50:38 +0000
(21:50 +0800)
"-m" is specified as a short form of "--monitor" in the option struct,
but not included in getopt_long's optstring. Update the optstring
to be consistent with the option struct.
src/test/test-libudev.c
patch
|
blob
|
history
diff --git
a/src/test/test-libudev.c
b/src/test/test-libudev.c
index 408d14133b98ab4a4726511ce7ca7448bab8e684..f748fbc8785d8e5c4689748c43c824d88778a12b 100644
(file)
--- a/
src/test/test-libudev.c
+++ b/
src/test/test-libudev.c
@@
-372,7
+372,7
@@
int main(int argc, char *argv[]) {
return 1;
}
- while ((c = getopt_long(argc, argv, "p:s:dhV", options, NULL)) >= 0)
+ while ((c = getopt_long(argc, argv, "p:s:dhV
m
", options, NULL)) >= 0)
switch (c) {
case 'p':