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


  98 static int rdcsrv_dup_error;
  99 static int rdcsrv_registered;
 100 static int rdcsrv_closing;
 101 static int rdcsrv_refcnt;
 102 long rdc_svc_count = 0;
 103 static rdcsrv_t *rdcsrv_disptab;
 104 
 105 /*
 106  * Solaris module setup.
 107  */
 108 
 109 extern struct mod_ops mod_miscops;
 110 
 111 static struct modlmisc modlmisc = {
 112         &mod_miscops,   /* Type of module */
 113         "nws:Remote Mirror kRPC:" ISS_VERSION_STR
 114 };
 115 
 116 static struct modlinkage modlinkage = {
 117         MODREV_1,
 118         &modlmisc,
 119         NULL
 120 };
 121 
 122 
 123 int
 124 _init(void)
 125 {
 126         int rc;
 127 
 128         mutex_init(&rdcsrv_lock, NULL, MUTEX_DRIVER, NULL);
 129 
 130         if ((rc = mod_install(&modlinkage)) != DDI_SUCCESS)
 131                 mutex_destroy(&rdcsrv_lock);
 132 
 133         return (rc);
 134 }
 135 
 136 
 137 int
 138 _fini(void)
 139 {




  98 static int rdcsrv_dup_error;
  99 static int rdcsrv_registered;
 100 static int rdcsrv_closing;
 101 static int rdcsrv_refcnt;
 102 long rdc_svc_count = 0;
 103 static rdcsrv_t *rdcsrv_disptab;
 104 
 105 /*
 106  * Solaris module setup.
 107  */
 108 
 109 extern struct mod_ops mod_miscops;
 110 
 111 static struct modlmisc modlmisc = {
 112         &mod_miscops,   /* Type of module */
 113         "nws:Remote Mirror kRPC:" ISS_VERSION_STR
 114 };
 115 
 116 static struct modlinkage modlinkage = {
 117         MODREV_1,
 118         { &modlmisc, NULL }

 119 };
 120 
 121 
 122 int
 123 _init(void)
 124 {
 125         int rc;
 126 
 127         mutex_init(&rdcsrv_lock, NULL, MUTEX_DRIVER, NULL);
 128 
 129         if ((rc = mod_install(&modlinkage)) != DDI_SUCCESS)
 130                 mutex_destroy(&rdcsrv_lock);
 131 
 132         return (rc);
 133 }
 134 
 135 
 136 int
 137 _fini(void)
 138 {