[syslinux:master] isohybrid: use getopt_long_only()

syslinux-bot for H. Peter Anvin hpa at zytor.com
Thu May 20 20:39:05 PDT 2010


Commit-ID:  08b3602db548775ca819780de77686a186156ec7
Gitweb:     http://syslinux.zytor.com/commit/08b3602db548775ca819780de77686a186156ec7
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Thu, 20 May 2010 20:35:24 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Thu, 20 May 2010 20:35:24 -0700

isohybrid: use getopt_long_only()

For compatibility with isohybrid.pl, use getopt_long_only() so long
options are accepted with a single dash.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 utils/isohybrid.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/utils/isohybrid.c b/utils/isohybrid.c
index 5b63b0c..4e504b9 100644
--- a/utils/isohybrid.c
+++ b/utils/isohybrid.c
@@ -130,7 +130,7 @@ check_option(int argc, char *argv[])
     };
 
     opterr = mode = 0;
-    while ((n = getopt_long(argc, argv, optstr, lopt, &ind)) != -1)
+    while ((n = getopt_long_only(argc, argv, optstr, lopt, &ind)) != -1)
     {
         switch (n)
         {



More information about the Syslinux-commits mailing list