summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2008-08-23 15:25:49 -0700
committerBrendan Cully <brendan@kublai.com>2008-08-23 15:25:49 -0700
commit8293f6399231d23b696ca41c59d2042584819a55 (patch)
tree20fdafe21f1f38b4207af0c82e6ad3f3a7972cda /main.c
parente3c2ce643d645b0da8f92579b66d95cd8d3d8e8a (diff)
Whitespace cleanup
Diffstat (limited to 'main.c')
-rw-r--r--main.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/main.c b/main.c
index ca1a3c67..55e583eb 100644
--- a/main.c
+++ b/main.c
@@ -575,30 +575,30 @@ int main (int argc, char **argv)
for (optind = 1; optind < double_dash; )
{
- /* We're getopt'ing POSIXLY, so we'll be here every time getopt()
- * encounters a non-option. That could be a file to attach
- * (all non-options between -a and --) or it could be an address
- * (which gets collapsed to the front of argv).
- */
- for (; optind < argc; optind++)
- {
- if (argv[optind][0] == '-' && argv[optind][1] != '\0')
+ /* We're getopt'ing POSIXLY, so we'll be here every time getopt()
+ * encounters a non-option. That could be a file to attach
+ * (all non-options between -a and --) or it could be an address
+ * (which gets collapsed to the front of argv).
+ */
+ for (; optind < argc; optind++)
{
- if (argv[optind][1] == '-' && argv[optind][2] == '\0')
- double_dash = optind; /* quit outer loop after getopt */
- break; /* drop through to getopt */
- }
+ if (argv[optind][0] == '-' && argv[optind][1] != '\0')
+ {
+ if (argv[optind][1] == '-' && argv[optind][2] == '\0')
+ double_dash = optind; /* quit outer loop after getopt */
+ break; /* drop through to getopt */
+ }
- /* non-option, either an attachment or address */
- if (attach)
- attach = mutt_add_list (attach, argv[optind]);
- else
- argv[nargc++] = argv[optind];
- }
+ /* non-option, either an attachment or address */
+ if (attach)
+ attach = mutt_add_list (attach, argv[optind]);
+ else
+ argv[nargc++] = argv[optind];
+ }
- if ((i = getopt (argc, argv, "+A:a:b:F:f:c:Dd:e:H:s:i:hm:npQ:RvxyzZ")) != EOF)
- switch (i)
- {
+ if ((i = getopt (argc, argv, "+A:a:b:F:f:c:Dd:e:H:s:i:hm:npQ:RvxyzZ")) != EOF)
+ switch (i)
+ {
case 'A':
alias_queries = mutt_add_list (alias_queries, optarg);
break;
@@ -699,7 +699,7 @@ int main (int argc, char **argv)
default:
mutt_usage ();
- }
+ }
}
/* collapse remaining argv */