demo: Do not declare pointers and use malloc when not needed
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Wed, 19 Dec 2012 06:24:47 +0000 (00:24 -0600)
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>
Wed, 19 Dec 2012 06:24:47 +0000 (00:24 -0600)
commit6c134f79a03171f62d965876f840470deeecdae4
treef8a71fdcdf00caf44fd7aed6f624153229bc80a9
parentc4365ba2d33cf167711c280dd5d6ae9701c89db2
demo: Do not declare pointers and use malloc when not needed

The generator_context in dev_context struct, as well as the session packets
in hw_dev_acquisition_start() were declared as pointers and needed to be
malloc'd.

There is no need to have those around as pointers, and as such, no reason to
worry about malloc'ing and free'ing them. Declare them as structs, not struct
pointers.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
hardware/demo/demo.c