summaryrefslogtreecommitdiff
path: root/usr/src/lib/libnisdb/ldap_map.c
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2017-11-27 13:37:34 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2017-11-27 13:37:34 +0000
commit2ba2c786fc7f279dff78bdfdb8d6f8c63b445314 (patch)
treef2e30f3b5a69ae922749b913006e56624f69e390 /usr/src/lib/libnisdb/ldap_map.c
parent80e874964a249ceff971a86779ea3eeb76350017 (diff)
parent4b44494bc0063e420eaa97f89cac1d1ff036c9da (diff)
downloadillumos-joyent-2ba2c786fc7f279dff78bdfdb8d6f8c63b445314.tar.gz
[illumos-gate merge]
commit 4b44494bc0063e420eaa97f89cac1d1ff036c9da 8826 libnisdb: variable set but not used commit 9b7c09359fb54caf6aad4de74967d415a48a88aa 8825 libsldap: variable 'buf' set but not used commit 942ab016774d03e12180dd0492e27e8227871a89 8821 smbsrv: error: variable 'dnptrs' set but not used commit ff7e8ba86ba6352405bed47d89bd49c659eb6871 8820 pam_modules: variable set but not used commit 8c69cc8fbe729fa7b091e901c4b50508ccc6bb33 8818 i86xpv/generic_cpu: variable set but not used commit 1f0a297725d06da62d0c701916f52e7f403ee0fc 8817 ntxn: parameter 'mode_dont_care' set but not used commit f58b22cff52aa6f7ce2ef23b9bbcc9d9e13f6cd7 8796 loader.efi: efipart does not recognize partitionless disks commit f924f33d7af04fdea77591a059dd9c734448b76b 8816 mr_sas: variable set but not used commit c873de809dcfeab9e738982f896c992a43066ee5 8815 mega_sas: variable set but not used commit 41be0ab3c9666e1f4bec924d95785dc06ab87662 8811 bfe: variable 'prom' set but not used commit d1c3d93af2b0ea9ce0e658a1baa771aafbd5aafe 8753 linker errors don't show up in the "mail_msg" file
Diffstat (limited to 'usr/src/lib/libnisdb/ldap_map.c')
-rw-r--r--usr/src/lib/libnisdb/ldap_map.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/usr/src/lib/libnisdb/ldap_map.c b/usr/src/lib/libnisdb/ldap_map.c
index 7da24e8877..524a847757 100644
--- a/usr/src/lib/libnisdb/ldap_map.c
+++ b/usr/src/lib/libnisdb/ldap_map.c
@@ -53,13 +53,11 @@ int
setColumnNames(__nis_table_mapping_t *t) {
int i, j, nic, noc;
char **col;
- zotypes type;
char *myself = "setColumnNames";
if (t == 0)
return (0);
- type = t->objType;
col = t->column;
nic = (col != 0) ? t->numColumns : -1;
@@ -1130,7 +1128,6 @@ verifyIndexMatch(__nis_table_mapping_t *x, db_query *q,
/* Check each index */
for (i = 0; i < x->index.numIndexes; i++) {
- int len = 0;
char *value = 0;
/* Skip NULL index names */
@@ -1178,11 +1175,6 @@ verifyIndexMatch(__nis_table_mapping_t *x, db_query *q,
index_value->
itemvalue.
itemvalue_val;
- len = q->components.
- components_val[k].
- index_value->
- itemvalue.
- itemvalue_len;
break;
}
}
@@ -1240,7 +1232,7 @@ __nis_table_mapping_t **
selectTableMapping(__nis_table_mapping_t *t, db_query *q,
int wantWrite, int wantObj, char *dbId,
int *numMatches) {
- __nis_table_mapping_t *r, *x, **tp;
+ __nis_table_mapping_t *x, **tp;
int i, nm, numap;
char *myself = "selectTableMapping";
@@ -1306,7 +1298,7 @@ selectTableMapping(__nis_table_mapping_t *t, db_query *q,
}
/* Scan all mappings, and collect candidates */
- for (nm = 0, r = 0, x = t; x != 0; x = x->next) {
+ for (nm = 0, x = t; x != 0; x = x->next) {
if (x->objectDN == 0)
continue;
if (wantWrite) {