Print this page
Remove include userdefs.h where not needed

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libcmdutils/common/uid.c
          +++ new/usr/src/lib/libcmdutils/common/uid.c
↓ open down ↓ 26 lines elided ↑ open up ↑
  27   27  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  28   28  /*        All Rights Reserved   */
  29   29  
  30   30  /*
  31   31   * Copyright (c) 2013 RackTop Systems.
  32   32   */
  33   33  
  34   34  #include <errno.h>
  35   35  #include <sys/types.h>
  36   36  #include <stdio.h>
  37      -#include <userdefs.h>
  38   37  #include <pwd.h>
  39   38  #include <libcmdutils.h>
  40   39  
  41   40  static int findunuseduid(uid_t start, uid_t stop, uid_t *ret);
  42   41  static boolean_t isreserveduid(uid_t uid);
  43   42  
  44   43  /*
  45   44   * Find the highest unused uid. If the highest unused uid is "stop",
  46   45   * then attempt to find a hole in the range. Returns 0 on success.
  47   46   */
↓ open down ↓ 65 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX