Made the discovery function static.

This commit is contained in:
Jef Driesen 2008-06-04 13:18:57 +00:00
parent 987b785de4
commit df8f9e24f2

View File

@ -24,7 +24,8 @@ struct smart {
};
void discovery (unsigned int address, const char *name, unsigned int charset, unsigned int hints, void *userdata)
static void
uwatec_smart_discovery (unsigned int address, const char *name, unsigned int charset, unsigned int hints, void *userdata)
{
message ("device: address=%08x, name=%s, charset=%02x, hints=%04x\n", address, name, charset, hints);
@ -78,7 +79,7 @@ uwatec_smart_open (smart **out)
}
// Discover the device.
rc = irda_socket_discover (device->socket, discovery, device);
rc = irda_socket_discover (device->socket, uwatec_smart_discovery, device);
if (rc == -1) {
WARNING ("Failed to discover the device.");
irda_socket_close (device->socket);