diff options
-rw-r--r-- | usr/src/lib/librdc/common/rdcconfig.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/usr/src/lib/librdc/common/rdcconfig.c b/usr/src/lib/librdc/common/rdcconfig.c index 92e735d66e..b8fc2ade37 100644 --- a/usr/src/lib/librdc/common/rdcconfig.c +++ b/usr/src/lib/librdc/common/rdcconfig.c @@ -244,7 +244,7 @@ populate_addrs(rdc_set_t *urdc, int isenable) if ((fromname[0] == '\0') || (fromname[0] == '\0')) { rdc_set_error(NULL, RDC_INTERNAL, RDC_FATAL, "NULL hostname recieved"); - return (-1); + return (-1); } hp = gethost_byname(fromname); @@ -313,7 +313,8 @@ rdc_free_config(rdcconfig_t *rdc, int all) } void -rdc_free_rclist(rdc_rc_t *rc) { +rdc_free_rclist(rdc_rc_t *rc) +{ rdc_rc_t *rcp, *rcq; rcp = rc; @@ -635,7 +636,6 @@ rdc_usync(rdcconfig_t *rdc) rdc_rc_t *rc = NULL; rdc_rc_t *rcp = NULL; rdc_rc_t *tmprc; - int trc; rdcp = rdc; @@ -646,7 +646,7 @@ rdc_usync(rdcconfig_t *rdc) rdccfg->command = RDC_CMD_COPY; rdccfg->options = RDC_OPT_UPDATE|RDC_OPT_FORWARD; populate_addrs(&rdccfg->rdc_set[0], 0); - trc = thr_create(NULL, 0, rdc_mtconfig, + (void) thr_create(NULL, 0, rdc_mtconfig, (void **) rdccfg, THR_BOUND, NULL); rdcp = rdcp->next; if (!rdcp) @@ -679,7 +679,6 @@ rdc_fsync(rdcconfig_t *rdc) rdc_rc_t *rc = NULL; rdc_rc_t *rcp = NULL; rdc_rc_t *tmprc = NULL; - int trc; rdcp = rdc; rc = new_rc(); @@ -695,7 +694,7 @@ rdc_fsync(rdcconfig_t *rdc) rdccfg->command = RDC_CMD_COPY; rdccfg->options = RDC_OPT_FULL|RDC_OPT_FORWARD; populate_addrs(&rdccfg->rdc_set[0], 0); - trc = thr_create(NULL, 0, rdc_mtconfig, + (void) thr_create(NULL, 0, rdc_mtconfig, (void **) rdccfg, THR_BOUND, NULL); rdcp = rdcp->next; if (!rdcp) @@ -728,7 +727,6 @@ rdc_rsync(rdcconfig_t *rdc) rdc_rc_t *rc = NULL; rdc_rc_t *rcp = NULL; rdc_rc_t *tmprc = NULL; - int trc; rdcp = rdc; rc = new_rc(); @@ -755,7 +753,7 @@ rdc_rsync(rdcconfig_t *rdc) rdccfg->command = RDC_CMD_COPY; rdccfg->options = RDC_OPT_REVERSE|RDC_OPT_FULL; populate_addrs(&rdccfg->rdc_set[0], 0); - trc = thr_create(NULL, 0, rdc_mtconfig, + (void) thr_create(NULL, 0, rdc_mtconfig, (void **) rdccfg, THR_BOUND, NULL); next: rdcp = rdcp->next; @@ -788,7 +786,6 @@ rdc_ursync(rdcconfig_t *rdc) rdc_rc_t *rc = NULL; rdc_rc_t *rcp = NULL; rdc_rc_t *tmprc = NULL; - int trc; rdcp = rdc; @@ -810,7 +807,7 @@ rdc_ursync(rdcconfig_t *rdc) rdccfg->command = RDC_CMD_COPY; rdccfg->options = RDC_OPT_REVERSE | RDC_OPT_UPDATE; populate_addrs(&rdccfg->rdc_set[0], 0); - trc = thr_create(NULL, 0, rdc_mtconfig, + (void) thr_create(NULL, 0, rdc_mtconfig, (void **) rdccfg, THR_BOUND, NULL); next: rdcp = rdcp->next; |