Print this page
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/hsfs/hsfs_susp.c
          +++ new/usr/src/uts/common/fs/hsfs/hsfs_susp.c
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * ISO 9660 System Use Sharing Protocol extension filesystem specifications
  24   24   * Copyright (c) 1991,2000,2001 by Sun Microsystems, Inc.
  25   25   * All rights reserved.
  26   26   */
  27   27  
  28      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  29      -
  30   28  #include <sys/types.h>
  31   29  #include <sys/t_lock.h>
  32   30  #include <sys/param.h>
  33   31  #include <sys/systm.h>
  34   32  #include <sys/sysmacros.h>
  35   33  #include <sys/kmem.h>
  36   34  #include <sys/signal.h>
  37   35  #include <sys/user.h>
  38   36  #include <sys/proc.h>
  39   37  #include <sys/disp.h>
↓ open down ↓ 21 lines elided ↑ open up ↑
  61   59  #include <sys/debug.h>
  62   60  #include "fs/fs_subr.h"
  63   61  #include <sys/cmn_err.h>
  64   62  
  65   63  
  66   64  
  67   65  /*
  68   66   *      Common Signatures for all SUSP
  69   67   */
  70   68  ext_signature_t  susp_signature_table[ ] = {
  71      -        SUSP_SP,        share_protocol,         /* must be first in table */
  72      -        SUSP_CE,        share_continue,         /* must be second in table */
  73      -        SUSP_PD,        share_padding,
  74      -        SUSP_ER,        share_ext_ref,
  75      -        SUSP_ST,        share_stop,
  76      -        (char *)NULL,   NULL
       69 +        { SUSP_SP,      share_protocol },       /* must be first in table */
       70 +        { SUSP_CE,      share_continue },       /* must be second in table */
       71 +        { SUSP_PD,      share_padding },
       72 +        { SUSP_ER,      share_ext_ref },
       73 +        { SUSP_ST,      share_stop },
       74 +        { NULL,         NULL }
  77   75  };
  78   76  
  79   77  /*
  80   78   * These are global pointers referring to the above table, so the
  81   79   * positions must not change as marked on the right above.
  82   80   */
  83   81  ext_signature_t *susp_sp = &susp_signature_table[0];
  84   82  ext_signature_t *susp_ce = &susp_signature_table[1];
  85   83  
  86   84  
  87   85  /*
  88   86   * ext name     version         implemented     signature table
  89   87   *
  90   88   * the SUSP must be the first entry in the table.
  91   89   * the RRIP must be the second entry in the table. We need to be able
  92   90   * to check the RRIP bit being set, so we must know it's position.
  93   91   * RRIP_BIT is set to 2 in rrip.h
  94   92   */
  95   93  extension_name_t   extension_name_table[]  =  {
  96      -        "SUSP_1991A",   SUSP_VERSION,           susp_signature_table, /* #1 */
  97      -        RRIP_ER_EXT_ID, RRIP_EXT_VERSION,       rrip_signature_table,
  98      -        (char *)NULL,   0,                      (ext_signature_t *)NULL
       94 +        { "SUSP_1991A", SUSP_VERSION,   susp_signature_table }, /* #1 */
       95 +        { RRIP_ER_EXT_ID, RRIP_EXT_VERSION, rrip_signature_table },
       96 +        { NULL,         0,              (ext_signature_t *)NULL }
  99   97  };
 100   98  
 101   99  extension_name_t        *susp_ext_name = extension_name_table;
 102  100  
 103  101  /*
 104  102   * share_protocol()
 105  103   *
 106  104   * sig_handler() for SUSP signature "SP"
 107  105   *
 108  106   * This function looks for the "SP" signature field, which means that
↓ open down ↓ 139 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX