Convert argument in HID_Flags to (void *) rather than (int)
commit13809eef18ede979c7cb4c47e0b5c8f9270ec400
authorPeter Clifton <pcjc2@cam.ac.uk>
Wed, 14 Nov 2012 21:17:25 +0000 (14 21:17 +0000)
committerPeter Clifton <pcjc2@cam.ac.uk>
Wed, 14 Nov 2012 21:17:25 +0000 (14 21:17 +0000)
treeb0ee408136569761d1b16490abed515ba5c2204b
parentdf06fde6c2338f717d5ce8cca1decc5f78e8ec11
Convert argument in HID_Flags to (void *) rather than (int)

void * allows us to pass pointers on all platforms, 64bit or
otherwise. We can still use casting macros to safely pass integer
values via this pointer.

Avoids the ugliness of castnig a size_t sized offset_of value into
an int. Due to the size of our structures, this did not cause any
actual bugs, but was not good practice.
src/djopt.c
src/flags.c
src/hid.h
src/hid/gtk/gtkhid-main.c
src/hid/lesstif/main.c
src/vendor.c