Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/tools/aw/aw.c
          +++ new/usr/src/tools/aw/aw.c
↓ open down ↓ 563 lines elided ↑ open up ↑
 564  564  
 565  565                          /*
 566  566                           * filenames ending in '.s' are taken to be
 567  567                           * assembler files, and provide the default
 568  568                           * basename of the output file.
 569  569                           *
 570  570                           * other files are passed through to the
 571  571                           * preprocessor, if present, or to gas if not.
 572  572                           */
 573  573                          filename = arg;
 574      -                        if (arglen > 2 &&
 575      -                            (strcmp(arg + arglen - 2, ".s") == 0) ||
 576      -                            (strcmp(arg + arglen - 2, ".S") == 0)) {
      574 +                        if ((arglen > 2) &&
      575 +                            ((strcmp(arg + arglen - 2, ".s") == 0) ||
      576 +                            (strcmp(arg + arglen - 2, ".S") == 0))) {
 577  577                                  /*
 578  578                                   * Though 'as' allows multiple assembler
 579  579                                   * files to be processed in one invocation
 580  580                                   * of the assembler, ON only processes one
 581  581                                   * file at a time, which makes things a lot
 582  582                                   * simpler!
 583  583                                   */
 584  584                                  if (srcfile == NULL)
 585  585                                          srcfile = arg;
 586  586                                  else
↓ open down ↓ 199 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX