db: use "distinct" to avoid duplicate function pointers
commit1131da98250e61b1301bae430fa378847eb1ce56
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 21 Feb 2013 12:35:29 +0000 (21 15:35 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 21 Feb 2013 12:35:29 +0000 (21 15:35 +0300)
tree3c8e9b32efab493772db292fefad264dcc3bd134
parent646bdda16a7ac1f2b767d6fc405166b0412860b1
db: use "distinct" to avoid duplicate function pointers

Right now we just bail if there is a duplicate function pointer.  That's
probably not a great idea.  Also we sometimes record a single function
pointer assignment twice so it shows up as a duplicate even though it
isn't one in the source.

Use "select distinct" to make the situation less bad.

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