Examples: fix compiler warnings

hotplugtest.c:30: warning: no previous prototype for ‘hotplug_callback’
hotplugtest.c:48: warning: no previous prototype for ‘hotplug_callback_detach’
Merge pull request #1 from LudovicRousseau/fixes

Examples: fix compiler warnings