Print this page
5910 libnisdb won't build with modern GCC
@@ -17,10 +17,11 @@
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
+ * Copyright 2015 Gary Mills
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -39,10 +40,11 @@
#include "ldap_ruleval.h"
#include "ldap_op.h"
#include "ldap_nisdbquery.h"
#include "ldap_attr.h"
#include "ldap_xdr.h"
+#include "ldap_ldap.h"
item *
buildItem(int len, void *value) {
char *myself = "buildItem";
@@ -222,11 +224,11 @@
db_query **
createQuery(int num, char **index, __nis_table_mapping_t *t,
__nis_rule_value_t **rvP, int *numVals) {
db_query **q;
db_qcomp *qc;
- int i, j, n, a, nv, niv, stat, sinum;
+ int i, j, n, a, nv, niv;
__nis_rule_value_t *rvq;
__nis_buffer_t b = {0, 0};
char *table = 0;
char *myself = "createQuery";
@@ -255,11 +257,10 @@
}
}
/* Create a rule-value from the col=val pairs */
for (n = 0; n < num; n++) {
- char *name;
char *value;
if ((value = strchr(index[n], '=')) == 0) {
logmsg(MSG_NOTIMECHECK, LOG_WARNING,
"%s: no '=' in \"%s\"",
@@ -270,11 +271,10 @@
*value = '\0';
value++;
for (a = 0; a < t->numColumns; a++) {
if (strcmp(index[n], t->column[a]) == 0) {
- int i, len = slen(value)+1;
/* Add col=val pair to 'rvq' */
if (addSCol2RuleValue(index[n], value, rvq)) {
freeRuleValue(rvq, 1);
sfree(table);
@@ -690,11 +690,11 @@
db_query **query = 0;
int r, i, j, ir;
__nis_value_t *rval, *lval;
__nis_mapping_item_t *litem;
int numItems;
- int nq, iqc;
+ int nq;
__nis_obj_attr_t **attr = 0;
char **dn = 0;
int numDN = 0;
char *myself = "createNisPlusEntry";