]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-libudev: make "-m" equivalent to "--monitor"
authorDouglas Christman <DouglasChristman@gmail.com>
Wed, 28 Feb 2018 01:28:50 +0000 (20:28 -0500)
committerDouglas 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

index 408d14133b98ab4a4726511ce7ca7448bab8e684..f748fbc8785d8e5c4689748c43c824d88778a12b 100644 (file)
@@ -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:dhVm", options, NULL)) >= 0)
                 switch (c) {
 
                 case 'p':