Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/resolv.h
          +++ new/usr/src/head/resolv.h
   1    1  /*
        2 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
        3 + *
   2    4   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
   3    5   * Use is subject to license terms.
   4    6   *
   5    7   * Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
   6    8   * All Rights Reserved
   7    9   *
   8   10   * Portions of this source code were derived from Berkeley
   9   11   * 4.3 BSD under license from the regents of the University of
  10   12   * California.
  11   13   */
↓ open down ↓ 111 lines elided ↑ open up ↑
 123  125  /*
 124  126   * Resolver configuration file.
 125  127   * Normally not present, but may contain the address of the
 126  128   * initial name server(s) to query and the domain search list.
 127  129   */
 128  130  
 129  131  #ifndef _PATH_RESCONF
 130  132  #define _PATH_RESCONF           "/etc/resolv.conf"
 131  133  #endif
 132  134  
 133      -#ifdef __STDC__
 134  135  #ifndef __P
 135  136  #define __P(x)  x
 136  137  #endif
 137      -#else
 138      -#ifndef __P
 139      -#define __P(x)  ()
 140      -#endif
 141      -#endif /* __STDC__ */
 142  138  
 143  139  typedef enum { res_goahead, res_nextns, res_modified, res_done, res_error }
 144  140          res_sendhookact;
 145  141  
 146  142  typedef res_sendhookact (*res_send_qhook)__P((struct sockaddr * const *ns,
 147  143                                                  const uchar_t **query,
 148  144                                                  int *querylen,
 149  145                                                  uchar_t *ans,
 150  146                                                  int anssiz,
 151  147                                                  int *resplen));
↓ open down ↓ 298 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX