Print this page
10080 smatch Makefile changes for usr/src/cmd

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/print/printer-info/printer-info.c
          +++ new/usr/src/cmd/print/printer-info/printer-info.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 2005 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
       27 +/*
       28 + * Copyright (c) 2018, Joyent, Inc.
       29 + */
  28   30  
  29   31  #include <stdio.h>
       32 +#include <stdlib.h>
  30   33  #include <unistd.h>
  31   34  #include <string.h>
  32   35  #include <sys/ioctl.h>
  33   36  #include <sys/prnio.h>
  34   37  #include <fcntl.h>
  35   38  
  36   39  #define COMMAND_SET_MAX 16      /* more than 16 command sets is not likely */
  37   40  #define NP(x)   (x ? x : "")
  38   41  
  39   42  typedef struct {
↓ open down ↓ 157 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX