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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libnisdb/db_index_entry_c.c
          +++ new/usr/src/lib/libnisdb/db_index_entry_c.c
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   * and limitations under the License.
  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  /*
       24 + * Copyright 2015 Gary Mills
       25 + */
       26 +
       27 +/*
  23   28   * This is a non-recursive version of XDR routine used for db_index_entry
  24   29   * type.
  25   30   */
  26   31  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  28      -
  29   32  #include <sys/types.h>
  30   33  #include <sys/syslog.h>
  31   34  #include <stdio.h>
  32   35  #include <rpc/types.h>
  33   36  #include <rpc/xdr.h>
  34   37  #include <memory.h>
  35   38  #include "db_index_entry_c.h"
  36   39  #include "db_table_c.h"
       40 +#include "xdr_nullptr.h"
  37   41  
  38   42  bool_t
  39   43  xdr_db_index_entry(xdrs, objp)
  40   44          register XDR *xdrs;
  41   45          db_index_entry *objp;
  42   46  {
  43   47          bool_t  more_data;
  44   48          register db_index_entry *ep = objp;
  45   49          register db_index_entry *loc;
  46   50          register db_index_entry *freeptr = NULL;
↓ open down ↓ 165 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX