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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libnisdb/nis_parse_ldap_util.c
          +++ new/usr/src/lib/libnisdb/nis_parse_ldap_util.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   *
  14   14   * When distributing Covered Code, include this CDDL HEADER in each
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
       23 + * Copyright 2015 Gary Mills
  23   24   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24   25   * Use is subject to license terms.
  25   26   */
  26   27  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  28      -
  29   28  #include <stdio.h>
  30   29  #include <string.h>
  31   30  #include <stdlib.h>
  32   31  #include <ctype.h>
  33   32  #include <fcntl.h>
  34   33  #include <unistd.h>
  35   34  #include <errno.h>
  36   35  #include <locale.h>
  37   36  #include <lber.h>
  38   37  #include <ldap.h>
↓ open down ↓ 15 lines elided ↑ open up ↑
  54   53  bool_t add_column(__nis_table_mapping_t *t, const char *col_name);
  55   54  __nis_mapping_rule_t **dup_mapping_rules(
  56   55          __nis_mapping_rule_t **rules, int n_rules);
  57   56  __nis_mapping_rule_t *dup_mapping_rule(
  58   57          __nis_mapping_rule_t *in);
  59   58  void *s_malloc(size_t size);
  60   59  __nis_mapping_format_t *dup_format_mapping(
  61   60          __nis_mapping_format_t *in);
  62   61  bool_t dup_mapping_element(__nis_mapping_element_t *in,
  63   62          __nis_mapping_element_t *out);
       63 +bool_t is_string_ok(char *, int);
  64   64  
  65   65  extern FILE *cons;
  66   66  
  67   67  /*
  68   68   * FUNCTION:    free_parse_structs
  69   69   *
  70   70   *      Release the resources in parse results
  71   71   *
  72   72   */
  73   73  
↓ open down ↓ 2616 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX