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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libnisdb/nis_db.cc
          +++ new/usr/src/lib/libnisdb/nis_db.cc
↓ open down ↓ 15 lines elided ↑ open up ↑
  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   22   *      nis_db.cc
  23   23   *
  24   24   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  25   25   * Use is subject to license terms.
       26 + *
       27 + * Copyright 2015 RackTop Systems.
  26   28   */
  27   29  
  28   30  
  29   31  #include <sys/param.h>
  30   32  #include <strings.h>
  31   33  #include <syslog.h>
  32   34  #include "nisdb_mt.h"
  33   35  #include "db_headers.h"
  34   36  #include "db_entry.h"
  35   37  #include "db.h"
↓ open down ↓ 101 lines elided ↑ open up ↑
 137  139          sfree(intName);
 138  140  
 139  141          return (dbase);
 140  142  }
 141  143  
 142  144  extern "C" {
 143  145  
 144  146  bool_t
 145  147  db_in_dict_file(char *name)
 146  148  {
 147      -        return ((bool_t) InUseDictionary->find_table_desc(name));
      149 +        return (InUseDictionary->find_table_desc(name) != NULL);
 148  150  
 149  151  }
 150  152  
 151  153  const char
 152  154  *db_perror(db_status dbstat)
 153  155  {
 154  156          const char *str = NULL;
 155  157  
 156  158          switch (dbstat) {
 157  159                  case DB_SUCCESS:
↓ open down ↓ 1777 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX