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’