diff audacious/getopt.c @ 1717:837983bac90f trunk

[svn] Fixed a lot of warnings that only showed up on *BSD.
author js
date Sat, 16 Sep 2006 16:26:54 -0700
parents 705d4c089fce
children
line wrap: on
line diff
--- a/audacious/getopt.c	Sat Sep 16 15:21:56 2006 -0700
+++ b/audacious/getopt.c	Sat Sep 16 16:26:54 2006 -0700
@@ -630,7 +630,7 @@
                 if (pfound->has_arg)
                     optarg = nameend + 1;
                 else {
-                    if (opterr)
+                    if (opterr) {
                         if (argv[optind - 1][1] == '-')
                             /* --option */
                             fprintf(stderr,
@@ -644,6 +644,7 @@
                                     ("%s: option `%c%s' doesn't allow an argument\n"),
                                     argv[0], argv[optind - 1][0],
                                     pfound->name);
+		    }
 
                     nextchar += strlen(nextchar);