Alexandre Julliard : sfnt2fon: Use getopt_long to allow arbitrary option order.

Alexandre Julliard julliard at winehq.org
Thu Feb 6 13:25:30 CST 2014


Module: wine
Branch: master
Commit: 207ae9f5c23af91d678c62e8bcf0833c286e5978
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=207ae9f5c23af91d678c62e8bcf0833c286e5978

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Feb  6 17:06:49 2014 +0100

sfnt2fon: Use getopt_long to allow arbitrary option order.

---

 tools/sfnt2fon/sfnt2fon.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/sfnt2fon/sfnt2fon.c b/tools/sfnt2fon/sfnt2fon.c
index 4b47682..7612bc2 100644
--- a/tools/sfnt2fon/sfnt2fon.c
+++ b/tools/sfnt2fon/sfnt2fon.c
@@ -646,7 +646,7 @@ static char **parse_options( int argc, char **argv )
 {
     int optc;
 
-    while ((optc = getopt( argc, argv, "d:ho:qr:s" )) != -1)
+    while ((optc = getopt_long( argc, argv, "d:ho:qr:s", NULL, NULL )) != -1)
     {
         switch(optc)
         {




More information about the wine-cvs mailing list