summaryrefslogtreecommitdiffstats
path: root/hcid/security.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-07-05 21:15:41 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-07-05 21:15:41 +0000
commit1f422e5f2b343d35a8c77ce4be16f74b2819b2bf (patch)
treee24bdebe86afcff3ce29cc0f47f05caec7ab7bc0 /hcid/security.c
parent952e7cc56afa29f77a828aa256985ba38a06fa80 (diff)
Fix some GCC 4.0 warnings
Diffstat (limited to 'hcid/security.c')
-rw-r--r--hcid/security.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hcid/security.c b/hcid/security.c
index 921875b3..04f5b9b8 100644
--- a/hcid/security.c
+++ b/hcid/security.c
@@ -471,7 +471,7 @@ static void remote_name_information(int dev, bdaddr_t *sba, void *ptr)
if (evt->status)
return;
- write_device_name(sba, dba, evt->name);
+ write_device_name(sba, dba, (char *) evt->name);
}
static void remote_version_information(int dev, bdaddr_t *sba, void *ptr)
@@ -518,7 +518,7 @@ static gboolean io_security_event(GIOChannel *chan, GIOCondition cond, gpointer
return FALSE;
}
- if ((err = g_io_channel_read(chan, buf, sizeof(buf), &len))) {
+ if ((err = g_io_channel_read(chan, (gchar *) buf, sizeof(buf), &len))) {
if (err == G_IO_ERROR_AGAIN)
return TRUE;
g_io_channel_close(chan);
@@ -664,7 +664,7 @@ void init_security_data(void)
{
/* Set local PIN code */
if (read_default_pin_code() < 0) {
- strcpy(hcid.pin_code, "BlueZ");
+ strcpy((char *) hcid.pin_code, "BlueZ");
hcid.pin_len = 5;
}