sim: Fix pin retries bogus values on some arch-es
authorDenis Kenzior <denkenz@gmail.com>
Wed, 3 Dec 2014 23:31:09 +0000 (17:31 -0600)
committerDenis Kenzior <denkenz@gmail.com>
Thu, 4 Dec 2014 14:57:48 +0000 (08:57 -0600)
commit7dca0a7315eed7de3cac818a3763612e74682daa
treef16211481fa51c6905945ec463fd7f9432f1a300
parent19519b2132004fc875aedcd1033b16c15732cbc3
sim: Fix pin retries bogus values on some arch-es

On some architectures the SimManager.Retries property was getting bogus
values.  This is because we were sending an array which pointed to int
values instead of the expected unsigned char values.

This fix allocates a temporary array of unsigned chars to hold the
actual D-Bus values being sent.  Additionally, the dictionary array is
changed to point to the temporary unsigned char based values instead of
the raw 'int' based retry values.
src/sim.c