Print this page
6136 sysmacros.h unnecessarily polutes the namespace

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/devfsadm/fssnap_link.c
          +++ new/usr/src/cmd/devfsadm/fssnap_link.c
↓ open down ↓ 16 lines elided ↑ open up ↑
  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   23   * Copyright (c) 2000-2001 by Sun Microsystems, Inc.
  24   24   * All rights reserved.
  25   25   */
  26   26  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  28      -
  29   27  #include <regex.h>
  30   28  #include <devfsadm.h>
  31   29  #include <stdio.h>
  32   30  #include <strings.h>
  33   31  #include <stdlib.h>
  34   32  #include <limits.h>
  35   33  #include <sys/fssnap_if.h>
       34 +#include <sys/mkdev.h>
  36   35  
  37   36  
  38   37  static int fssnap(di_minor_t minor, di_node_t node);
  39   38  
  40   39  static devfsadm_create_t fssnap_cbt[] = {
  41   40          { "pseudo", "ddi_pseudo", SNAP_NAME,
  42   41              TYPE_EXACT | DRV_EXACT, ILEVEL_0, fssnap,
  43   42          },
  44   43  };
  45   44  
↓ open down ↓ 43 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX