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


 104 static void     tem_free_buf(struct tem_vt_state *);
 105 static void     tem_internal_init(struct tem_vt_state *, cred_t *, boolean_t,
 106                     boolean_t);
 107 static void     tems_get_initial_color(tem_color_t *pcolor);
 108 
 109 /*
 110  * Globals
 111  */
 112 static ldi_ident_t      term_li = NULL;
 113 tem_state_t     tems;   /* common term info */
 114 _NOTE(MUTEX_PROTECTS_DATA(tems.ts_lock, tems))
 115 
 116 extern struct mod_ops mod_miscops;
 117 
 118 static struct modlmisc  modlmisc = {
 119         &mod_miscops,       /* modops */
 120         "ANSI Terminal Emulator", /* name */
 121 };
 122 
 123 static struct modlinkage modlinkage = {
 124         MODREV_1, (void *)&modlmisc, NULL
 125 };
 126 
 127 int
 128 _init(void)
 129 {
 130         int ret;
 131         ret = mod_install(&modlinkage);
 132         if (ret != 0)
 133                 return (ret);
 134         ret = ldi_ident_from_mod(&modlinkage, &term_li);
 135         if (ret != 0) {
 136                 (void) mod_remove(&modlinkage);
 137                 return (ret);
 138         }
 139 
 140         mutex_init(&tems.ts_lock, (char *)NULL, MUTEX_DRIVER, NULL);
 141         list_create(&tems.ts_list, sizeof (struct tem_vt_state),
 142             offsetof(struct tem_vt_state, tvs_list_node));
 143         tems.ts_active = NULL;
 144 




 104 static void     tem_free_buf(struct tem_vt_state *);
 105 static void     tem_internal_init(struct tem_vt_state *, cred_t *, boolean_t,
 106                     boolean_t);
 107 static void     tems_get_initial_color(tem_color_t *pcolor);
 108 
 109 /*
 110  * Globals
 111  */
 112 static ldi_ident_t      term_li = NULL;
 113 tem_state_t     tems;   /* common term info */
 114 _NOTE(MUTEX_PROTECTS_DATA(tems.ts_lock, tems))
 115 
 116 extern struct mod_ops mod_miscops;
 117 
 118 static struct modlmisc  modlmisc = {
 119         &mod_miscops,       /* modops */
 120         "ANSI Terminal Emulator", /* name */
 121 };
 122 
 123 static struct modlinkage modlinkage = {
 124         MODREV_1, { (void *)&modlmisc, NULL }
 125 };
 126 
 127 int
 128 _init(void)
 129 {
 130         int ret;
 131         ret = mod_install(&modlinkage);
 132         if (ret != 0)
 133                 return (ret);
 134         ret = ldi_ident_from_mod(&modlinkage, &term_li);
 135         if (ret != 0) {
 136                 (void) mod_remove(&modlinkage);
 137                 return (ret);
 138         }
 139 
 140         mutex_init(&tems.ts_lock, (char *)NULL, MUTEX_DRIVER, NULL);
 141         list_create(&tems.ts_list, sizeof (struct tem_vt_state),
 142             offsetof(struct tem_vt_state, tvs_list_node));
 143         tems.ts_active = NULL;
 144