diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-05-15 22:49:02 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-05-15 22:49:02 +0000 |
commit | dcada8eed787ddcca19634f5a71a4dd0a2dc1856 (patch) | |
tree | 5dc0a6641d1326fb634958f30bc579a7a6e6afe7 /input | |
parent | dcaedb1f984f1af368861c4ebb6a6906aee75ac9 (diff) |
Fix wrong usage of non const bdaddr_t
Diffstat (limited to 'input')
-rw-r--r-- | input/device.c | 6 | ||||
-rw-r--r-- | input/device.h | 4 | ||||
-rw-r--r-- | input/server.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/input/device.c b/input/device.c index 04cabb0f..aa0689d0 100644 --- a/input/device.c +++ b/input/device.c @@ -1073,7 +1073,7 @@ int input_device_unregister(DBusConnection *conn, const char *path) return 0; } -static struct device *find_device(bdaddr_t *src, bdaddr_t *dst) +static struct device *find_device(const bdaddr_t *src, const bdaddr_t *dst) { struct device *idev; GSList *list; @@ -1097,7 +1097,7 @@ gboolean input_device_is_registered(bdaddr_t *src, bdaddr_t *dst) return TRUE; } -int input_device_set_channel(bdaddr_t *src, bdaddr_t *dst, int psm, int nsk) +int input_device_set_channel(const bdaddr_t *src, const bdaddr_t *dst, int psm, int nsk) { struct device *idev = find_device(src, dst); if (!idev) @@ -1115,7 +1115,7 @@ int input_device_set_channel(bdaddr_t *src, bdaddr_t *dst, int psm, int nsk) return 0; } -int input_device_close_channels(bdaddr_t *src, bdaddr_t *dst) +int input_device_close_channels(const bdaddr_t *src, const bdaddr_t *dst) { struct device *idev = find_device(src, dst); if (!idev) diff --git a/input/device.h b/input/device.h index 00f56df6..c9296ad0 100644 --- a/input/device.h +++ b/input/device.h @@ -45,6 +45,6 @@ int input_device_unregister(DBusConnection *conn, const char *path); gboolean input_device_is_registered(bdaddr_t *src, bdaddr_t *dst); -int input_device_set_channel(bdaddr_t *src, bdaddr_t *dst, int psm, int nsk); -int input_device_close_channels(bdaddr_t *src, bdaddr_t *dst); +int input_device_set_channel(const bdaddr_t *src, const bdaddr_t *dst, int psm, int nsk); +int input_device_close_channels(const bdaddr_t *src, const bdaddr_t *dst); int input_device_connadd(bdaddr_t *src, bdaddr_t *dst); diff --git a/input/server.c b/input/server.c index 48ffd7fd..976b8522 100644 --- a/input/server.c +++ b/input/server.c @@ -122,7 +122,7 @@ static void auth_callback(DBusError *derr, void *user_data) g_free(auth); } -static int authorize_device(bdaddr_t *src, bdaddr_t *dst) +static int authorize_device(const bdaddr_t *src, const bdaddr_t *dst) { struct authorization_data *auth; DBusMessage *msg; |