diff options
author | Brendan Cully <brendan@kublai.com> | 2008-08-23 15:25:49 -0700 |
---|---|---|
committer | Brendan Cully <brendan@kublai.com> | 2008-08-23 15:25:49 -0700 |
commit | 8293f6399231d23b696ca41c59d2042584819a55 (patch) | |
tree | 20fdafe21f1f38b4207af0c82e6ad3f3a7972cda /main.c | |
parent | e3c2ce643d645b0da8f92579b66d95cd8d3d8e8a (diff) |
Whitespace cleanup
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 44 |
1 files changed, 22 insertions, 22 deletions
@@ -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 */ |