Print this page
5910 libnisdb won't build with modern GCC

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libnisdb/ldap_val.c
          +++ new/usr/src/lib/libnisdb/ldap_val.c
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
       22 + * Copyright 2015 Gary Mills
  22   23   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   24   * Use is subject to license terms.
  24   25   */
  25   26  
  26   27  
  27   28  #include <lber.h>
  28   29  #include <ldap.h>
  29   30  #include <strings.h>
  30   31  #include <errno.h>
  31   32  
↓ open down ↓ 2051 lines elided ↑ open up ↑
2083 2084   * inVal        Input value(s)
2084 2085   * numVal       Number of elements in the output value array
2085 2086   * sepset       List of separators
2086 2087   * outstr       Points to the updated position upto which the
2087 2088   *              input string has been matched
2088 2089   */
2089 2090  __nis_value_t **
2090 2091  matchMappingItem(__nis_mapping_format_t *f, __nis_value_t *inVal,
2091 2092                  int *numVals, char *sepset, char **outstr) {
2092 2093          __nis_value_t           **v = 0;
2093      -        int                     i, n, ni, numItems, nf, nv = 0;
     2094 +        int                     i, n, ni, numItems, nf;
2094 2095          char                    *str, *valstr;
2095 2096          __nis_mapping_format_t  *ftmp;
2096 2097          char                    *myself = "matchMappingItem";
2097 2098  
2098 2099          if (f == 0 ||
2099 2100                  inVal == 0 || inVal->numVals < 1 || inVal->type != vt_string)
2100 2101                  return (0);
2101 2102  
2102 2103          /* Count the number of format elements and items in the format */
2103 2104          for (nf = numItems = 0, ftmp = f; ftmp->type != mmt_end; ftmp++) {
↓ open down ↓ 378 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX