constraints: add_related() should take a related_list not a state
commit9e6937d6d54e9b9d2cad834174e452c640ceec45
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 25 May 2012 14:13:57 +0000 (25 17:13 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Sat, 26 May 2012 15:40:53 +0000 (26 18:40 +0300)
tree668ac69ecf5b0933ccf34a59e64eda0ccb31b29d
parent0f89ae7cb972dd15f8c117f4fe8df9af6734f099
constraints: add_related() should take a related_list not a state

We're adding a state to a list so this is a better API.

Also I've made it static since it's only called from this file.

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