db: don't save struct members for integers
commit174da0c8d5604eb0f0137e3b81c2d51e6114cfd4
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 28 Nov 2018 10:56:09 +0000 (28 13:56 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 28 Nov 2018 10:56:09 +0000 (28 13:56 +0300)
tree6cbb747e265cc528c5173b7eb09aa020796915e1
parentd49653b64e79e12d0ba5639ac4f0128db3aa6063
db: don't save struct members for integers

The problem is that system calls pass in an unsigned long, right? But it's
actually not an unsigned long, it's a pointer.  So now we dereference the
unsigned long and have information about the struct members.  That's all
good.

But say we take that unsigned long, and we pass it to a function which only
takes an int.  In that case, there is no way to dereference it so we don't
need to pass the struct members.

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