From df8f9e24f2d899c4d72822367519436edde018f4 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Wed, 4 Jun 2008 13:18:57 +0000 Subject: [PATCH] Made the discovery function static. --- uwatec_smart.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/uwatec_smart.c b/uwatec_smart.c index 76507b8..1786305 100644 --- a/uwatec_smart.c +++ b/uwatec_smart.c @@ -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);