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 (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
*/
/*
* DESCRIPTION: Contains dit_access interface support functions.
@@ -35,10 +36,11 @@
#include <stdlib.h>
#include <syslog.h>
#include <ndbm.h>
#include <strings.h>
#include <errno.h>
+#include <ctype.h>
#include "../ldap_util.h"
#include "../ldap_map.h"
#include "../ldap_parse.h"
#include "../ldap_structs.h"
#include "../ldap_val.h"
@@ -122,15 +124,13 @@
processSplitField(__nis_table_mapping_t *sf, __nis_value_t *inVal,
int *nv, int *statP) {
char *sepset;
__nis_rule_value_t *rvq;
- __nis_mapping_format_t *ftmp;
__nis_value_t **valA, *tempVal;
int i, j, res, numVals, oldlen, count;
char *str, *oldstr;
- char *myself = "processSplitField";
/* sf will be non NULL */
if (inVal == 0 || inVal->type != vt_string) {
*statP = MAP_PARAM_ERROR;
@@ -252,11 +252,11 @@
__nis_rule_value_t *rvq, *subrvq, *newrvq;
__nis_value_t *val;
__nis_value_t **valA;
__nis_table_mapping_t *sf;
int valueLen, comLen, numVals, nr, count = 1;
- int i, j, k, l, af;
+ int i, j, k, l;
char *ipaddr, *ipvalue;
/* At this point, 't' is always non NULL */
/* Initialize rule-value */
@@ -643,11 +643,11 @@
* only in key.
*/
suc_code
buildNISRuleValue(__nis_table_mapping_t *t, __nis_rule_value_t *rv,
char *domain) {
- int r, i, j, k, l, index, nrq, res, len;
+ int r, i, j, k, l, nrq, res, len;
int numItems, splitname, count, statP;
__nis_value_t *rval;
__nis_mapping_item_t *litem;
__nis_mapping_rule_t *rl;
__nis_rule_value_t *rvq;
@@ -1008,13 +1008,13 @@
int *statP) {
__nis_table_mapping_t *t;
__nis_rule_value_t *rv_request = 0, *rv_result = 0;
__nis_ldap_search_t *ls;
__nis_object_dn_t *objectDN = NULL;
- int i, rc, nr = 0, nv = 0;
+ int i, rc, nr = 0;
datum *datval = 0;
- char *skey, *str, *sipkey;
+ char *skey, *str;
char *myself = "singleReadFromDIT";
*statP = SUCCESS;
if (!map || !domain || !key || !value) {