slist: fix alignment in alloc_sname()
commit7d3c01f66369e8389f39f2d41a65736e4d1d1f6c
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 Jan 2013 14:26:57 +0000 (15 17:26 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 Jan 2013 14:26:57 +0000 (15 17:26 +0300)
tree6d36f32dc5040833867d31dd005bb90d4c49745c
parent9ed5790e7527c629003124eebf17085ed2dbf370
slist: fix alignment in alloc_sname()

Originally it had size 0 and alignment 1.  Obviously the size is supposed
to be 1. I've set the alignment to 4 because sparse's list code assumes
that pointers are alignment that way.  It hides some tag information in the
last two bits.  (I want to write some code with lists of strings).

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_slist.c