Changeset 5490:1f9849496bc2

Show
Ignore:
Timestamp:
2008-08-23 15:25:49 (3 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Whitespace cleanup

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main.c

    r5489 r5490  
    576576  for (optind = 1; optind < double_dash; ) 
    577577  { 
    578    /* We're getopt'ing POSIXLY, so we'll be here every time getopt() 
    579     * encounters a non-option.  That could be a file to attach  
    580     * (all non-options between -a and --) or it could be an address 
    581     * (which gets collapsed to the front of argv). 
    582     */ 
    583    for (; optind < argc; optind++) 
    584    { 
    585     if (argv[optind][0] == '-' && argv[optind][1] != '\0') 
     578    /* We're getopt'ing POSIXLY, so we'll be here every time getopt() 
     579     * encounters a non-option.  That could be a file to attach  
     580     * (all non-options between -a and --) or it could be an address 
     581     * (which gets collapsed to the front of argv). 
     582     */ 
     583    for (; optind < argc; optind++) 
    586584    { 
    587       if (argv[optind][1] == '-' && argv[optind][2] == '\0') 
    588         double_dash = optind; /* quit outer loop after getopt */ 
    589       break;                  /* drop through to getopt */ 
     585      if (argv[optind][0] == '-' && argv[optind][1] != '\0') 
     586      { 
     587        if (argv[optind][1] == '-' && argv[optind][2] == '\0') 
     588          double_dash = optind; /* quit outer loop after getopt */ 
     589        break;                  /* drop through to getopt */ 
     590      } 
     591 
     592      /* non-option, either an attachment or address */ 
     593      if (attach) 
     594        attach = mutt_add_list (attach, argv[optind]); 
     595      else 
     596        argv[nargc++] = argv[optind]; 
    590597    } 
    591598 
    592     /* non-option, either an attachment or address */ 
    593     if (attach) 
    594       attach = mutt_add_list (attach, argv[optind]); 
    595     else 
    596       argv[nargc++] = argv[optind]; 
    597    } 
    598  
    599    if ((i = getopt (argc, argv, "+A:a:b:F:f:c:Dd:e:H:s:i:hm:npQ:RvxyzZ")) != EOF) 
    600     switch (i) 
    601     { 
     599    if ((i = getopt (argc, argv, "+A:a:b:F:f:c:Dd:e:H:s:i:hm:npQ:RvxyzZ")) != EOF) 
     600      switch (i) 
     601      { 
    602602      case 'A': 
    603603        alias_queries = mutt_add_list (alias_queries, optarg); 
     
    700700      default: 
    701701        mutt_usage (); 
    702     } 
     702      } 
    703703  } 
    704704