Print this page
*** NO COMMENTS ***

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ypcmd/revnetgroup/util.c
          +++ new/usr/src/cmd/ypcmd/revnetgroup/util.c
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  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  /*
  23   23   * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
       24 + * Copyright 2012 Nexenta Systems, Inc.  All rights reserved.
  24   25   */
  25   26  
  26   27  #include <stdio.h>
  27   28  #include <string.h>
  28   29  #include "util.h"
  29   30  
  30   31  
  31   32  
  32   33  
  33   34  /*
↓ open down ↓ 56 lines elided ↑ open up ↑
  90   91          maxlen = strlen(line) + 1;
  91   92  
  92   93          /*
  93   94           * Certain functions expects a newline in the buffer.
  94   95           */
  95   96          if (maxlen >= 2)
  96   97                  line[maxlen - 2] = '\n';
  97   98          (void) fprintf(stderr, "Following line too long - remaining chars "
  98   99                          "ignored\n--- %s", line);
  99  100          return (line);
 100      -}
 101      -
 102      -
 103      -void
 104      -fatal(message)
 105      -        char *message;
 106      -{
 107      -        (void) fprintf(stderr, "fatal error: %s\n", message);
 108      -        exit(1);
 109  101  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX