The __connman_device_scan() is now static as it is only called from device.c --- src/connman.h | 1 - src/device.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/connman.h b/src/connman.h index 17add6d..9ed9d24 100644 --- a/src/connman.h +++ b/src/connman.h @@ -361,7 +361,6 @@ void __connman_device_set_network(struct connman_device *device, struct connman_network *network); void __connman_device_cleanup_networks(struct connman_device *device); -int __connman_device_scan(struct connman_device *device); int __connman_device_enable(struct connman_device *device); int __connman_device_enable_persistent(struct connman_device *device); int __connman_device_disable(struct connman_device *device); diff --git a/src/device.c b/src/device.c index 3fb4b1e..12fa49a 100644 --- a/src/device.c +++ b/src/device.c @@ -725,7 +725,7 @@ connman_bool_t __connman_device_get_blocked(struct connman_device *device) return device->blocked; } -int __connman_device_scan(struct connman_device *device) +static int device_scan(struct connman_device *device) { if (!device->driver || !device->driver->scan) return -EOPNOTSUPP; @@ -1310,7 +1310,7 @@ int __connman_device_request_scan(enum connman_service_type type) continue; } - err = __connman_device_scan(device); + err = device_scan(device); if (err < 0 && err != -EINPROGRESS) { DBG("err %d", err); /* XXX maybe only a continue? */ -- 1.7.1 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman