diff options
Diffstat (limited to 'usr/src/lib/libstmf/common/store.c')
-rw-r--r-- | usr/src/lib/libstmf/common/store.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/usr/src/lib/libstmf/common/store.c b/usr/src/lib/libstmf/common/store.c index b6eabd8..8cebaaa 100644 --- a/usr/src/lib/libstmf/common/store.c +++ b/usr/src/lib/libstmf/common/store.c @@ -170,7 +170,7 @@ struct sigaction currentActionQuit; struct sigaction currentActionTerm; struct sigaction currentActionInt; -boolean_t actionSet = B_FALSE; +bool actionSet = false; /* * Version info for the SMF schema @@ -303,7 +303,7 @@ int addRemoveFlag) int ret = STMF_PS_SUCCESS; char buf[STMF_IDENT_LENGTH]; int commitRet; - boolean_t found = B_FALSE; + bool found = false; assert(pgName != NULL && groupName != NULL && memberName != NULL); @@ -445,7 +445,7 @@ int addRemoveFlag) ret = STMF_PS_ERROR_EXISTS; break; } else { - found = B_TRUE; + found = true; continue; } } @@ -640,7 +640,7 @@ iPsAddRemoveLuViewEntry(char *luPgName, char *viewEntryPgName, scf_transaction_t *tran = NULL; scf_transaction_entry_t *entry = NULL; scf_transaction_entry_t *entryVeName = NULL; - boolean_t createVeCnt = B_FALSE; + bool createVeCnt = false; uint64_t veCnt = 0; int ret = STMF_PS_SUCCESS; int commitRet; @@ -682,7 +682,7 @@ iPsAddRemoveLuViewEntry(char *luPgName, char *viewEntryPgName, ret = STMF_PS_ERROR; } else { /* we need to create the VE_CNT property */ - createVeCnt = B_TRUE; + createVeCnt = true; ret = STMF_PS_SUCCESS; } } else if (scf_error() == SCF_ERROR_NOT_FOUND) { @@ -931,7 +931,7 @@ iPsAddViewEntry(char *luPgName, char *viewEntryPgName, stmfViewEntry *viewEntry) int j = 0; int ret; uint8_t scfBool; - boolean_t createdVePg = B_FALSE; + bool createdVePg = false; int backoutRet; int commitRet; @@ -990,7 +990,7 @@ iPsAddViewEntry(char *luPgName, char *viewEntryPgName, stmfViewEntry *viewEntry) goto out; } - createdVePg = B_TRUE; + createdVePg = true; /* * Add the view entry as properties on the view entry group @@ -1290,7 +1290,7 @@ psClearProviderData(char *providerName, int providerType) scf_propertygroup_t *pg = NULL; char pgName[MAXPATHLEN]; int ret = STMF_PS_SUCCESS; - boolean_t pgNotFound = B_FALSE; + bool pgNotFound = false; if (providerName == NULL || (providerType != STMF_LU_PROVIDER_TYPE && providerType != STMF_PORT_PROVIDER_TYPE)) { @@ -1329,7 +1329,7 @@ psClearProviderData(char *providerName, int providerType) ret = STMF_PS_ERROR; goto out; } else { - pgNotFound = B_TRUE; + pgNotFound = true; } } @@ -1393,7 +1393,7 @@ iPsCreateDeleteGroup(char *pgRefName, char *groupName, int addRemoveFlag) char buf1[MAXNAMELEN]; char buf2[MAXNAMELEN]; char tmpbuf[MAXNAMELEN]; - boolean_t found = B_FALSE; + bool found = false; int ret = STMF_PS_SUCCESS; int commitRet; @@ -1492,7 +1492,7 @@ iPsCreateDeleteGroup(char *pgRefName, char *groupName, int addRemoveFlag) if (addRemoveFlag == ADD) { ret = STMF_PS_ERROR_EXISTS; } - found = B_TRUE; + found = true; /* * buf1 contains the name for REMOVE */ @@ -3741,7 +3741,7 @@ iPsGetViewEntry(char *viewEntryPgName, stmfViewEntry *viewEntry) /* Set the index */ viewEntry->veIndex = atoi(strtok(++indexPtr, "-")); - viewEntry->veIndexValid = B_TRUE; + viewEntry->veIndexValid = true; /* get allHosts property */ if (scf_pg_get_property(pg, STMF_VE_ALLHOSTS, @@ -3884,7 +3884,7 @@ iPsGetViewEntry(char *viewEntryPgName, stmfViewEntry *viewEntry) goto out; } /* set luNbrValid to true since we just got it */ - viewEntry->luNbrValid = B_TRUE; + viewEntry->luNbrValid = true; out: /* @@ -4009,7 +4009,7 @@ psGetProviderData(char *providerName, nvlist_t **nvl, int providerType, char dataPropertyName[STMF_PROVIDER_DATA_PROP_NAME_SIZE]; char *nvlistEncoded = NULL; ssize_t nvlistEncodedSize = 0; - boolean_t foundSetCnt = B_TRUE; + bool foundSetCnt = true; int i; int ret = STMF_PS_SUCCESS; @@ -4101,7 +4101,7 @@ psGetProviderData(char *providerName, nvlist_t **nvl, int providerType, if (scf_pg_get_property(pg, STMF_PROVIDER_DATA_PROP_SET_COUNT, prop) == -1) { if (scf_error() == SCF_ERROR_NOT_FOUND) { - foundSetCnt = B_FALSE; + foundSetCnt = false; } else { syslog(LOG_ERR, "get property %s/%s " "failed - %s", pgName, @@ -4444,7 +4444,7 @@ psSetProviderData(char *providerName, nvlist_t *nvl, int providerType, scf_value_t *value4 = NULL; scf_value_t *value5 = NULL; - boolean_t newPg = B_FALSE; + bool newPg = false; char pgName[MAXPATHLEN]; char dataPropertyName[STMF_PROVIDER_DATA_PROP_NAME_SIZE]; char *nvlistEncoded = NULL; @@ -4456,7 +4456,7 @@ psSetProviderData(char *providerName, nvlist_t *nvl, int providerType, uint64_t oldBlockCnt = 0; uint64_t blockCnt = 0; uint64_t setCnt = 0; - boolean_t foundSetCnt = B_TRUE; + bool foundSetCnt = true; int ret = STMF_PS_SUCCESS; int commitRet; @@ -4519,7 +4519,7 @@ psSetProviderData(char *providerName, nvlist_t *nvl, int providerType, ret = STMF_PS_ERROR; goto out; } - newPg = B_TRUE; + newPg = true; } } @@ -4577,7 +4577,7 @@ psSetProviderData(char *providerName, nvlist_t *nvl, int providerType, if (scf_pg_get_property(pg, STMF_PROVIDER_DATA_PROP_SET_COUNT, prop) == -1) { if (scf_error() == SCF_ERROR_NOT_FOUND) { - foundSetCnt = B_FALSE; + foundSetCnt = false; } else { syslog(LOG_ERR, "get property %s/%s failed - %s", pgName, STMF_PROVIDER_DATA_PROP_SET_COUNT, @@ -5300,7 +5300,7 @@ holdSignal(sigset_t *sigmaskRestore) return (1); } - actionSet = B_TRUE; + actionSet = true; } /* @@ -5354,7 +5354,7 @@ releaseSignal(sigset_t *sigmaskRestore) ret = 1; } - actionSet = B_FALSE; + actionSet = false; /* * Restore previous signal mask for this thread |