Print this page
12724 update smatch to 0.6.1-rc1-il-5

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/tokenize.c
          +++ new/usr/src/tools/smatch/src/tokenize.c
↓ open down ↓ 821 lines elided ↑ open up ↑
 822  822                          count = 99;
 823  823                  distribution[count]++;
 824  824          }
 825  825  
 826  826          for (i = 0; i < 100; i++) {
 827  827                  if (distribution[i])
 828  828                          fprintf(stderr, "%2d: %d buckets\n", i, distribution[i]);
 829  829          }
 830  830  }
 831  831  
 832      -static struct ident *alloc_ident(const char *name, int len)
      832 +struct ident *alloc_ident(const char *name, int len)
 833  833  {
 834  834          struct ident *ident = __alloc_ident(len);
 835  835          ident->symbols = NULL;
 836  836          ident->len = len;
 837  837          ident->tainted = 0;
 838  838          memcpy(ident->name, name, len);
 839  839          return ident;
 840  840  }
 841  841  
 842  842  static struct ident * insert_hash(struct ident *ident, unsigned long hash)
↓ open down ↓ 190 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX