Print this page
10075 make usr/src/tools smatch clean

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/protocmp/proto_list.c
          +++ new/usr/src/tools/protocmp/proto_list.c
↓ open down ↓ 15 lines elided ↑ open up ↑
  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   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26      -#pragma ident   "%Z%%M% %I%     %E% SMI"
       26 +/*
       27 + * Copyright (c) 2018, Joyent, Inc.
       28 + */
  27   29  
  28   30  #include <stdio.h>
  29   31  #include <fcntl.h>
  30   32  #include <strings.h>
  31   33  #include <ctype.h>
  32   34  #include <stdlib.h>
  33   35  
  34   36  #include "list.h"
  35   37  #include "proto_list.h"
  36   38  
↓ open down ↓ 149 lines elided ↑ open up ↑
 186  188          if ((v[MINOR][0] == '-') && (v[MINOR][1] == '\0'))
 187  189                  e->minor = -1;
 188  190          else
 189  191                  e->minor = atoi(v[MINOR]);
 190  192  
 191  193          if ((v[SYM][0] == '-') && (v[SYM][1] == '\0'))
 192  194                  e->symsrc = NULL;
 193  195          else {
 194  196                  e->symsrc = malloc(strlen(v[SYM]) + 1);
 195  197                  (void) strcpy(e->symsrc, v[SYM]);
 196      -                        if (e->file_type != SYM_LINK_T)
      198 +                if (e->file_type != SYM_LINK_T)
 197  199  #if defined(__sparc)
 198  200                          if (strncmp(e->symsrc, "sun4/", 5) == 0)
 199  201                                  e->arch = P_SUN4;
 200  202                          else if (strncmp(e->symsrc, "sun4c/", 6) == 0)
 201  203                                  e->arch = P_SUN4c;
 202  204                          else if (strncmp(e->symsrc, "sun4u/", 6) == 0)
 203  205                                  e->arch = P_SUN4u;
 204  206                          else if (strncmp(e->symsrc, "sun4d/", 6) == 0)
 205  207                                  e->arch = P_SUN4d;
 206  208                          else if (strncmp(e->symsrc, "sun4e/", 6) == 0)
↓ open down ↓ 61 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX