diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-01-14 23:27:42 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-01-14 23:27:42 +0000 |
commit | 69367c0266b6f89ea085ac81eda51fc4e18e50c8 (patch) | |
tree | a897ed69b35370ecc26804ed5fdbfb8b23429378 /hcid/dbus-service.c | |
parent | caaafda2c06ac2f0183b29f8999d814587508e39 (diff) |
Minor cleanup and a fix
Diffstat (limited to 'hcid/dbus-service.c')
-rw-r--r-- | hcid/dbus-service.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c index 40ab706a..a6658dd7 100644 --- a/hcid/dbus-service.c +++ b/hcid/dbus-service.c @@ -700,14 +700,14 @@ int init_services(const char *path) d = opendir(path); if (!d) { - error("Unable to open service dir %s: %s", strerror(errno)); + error("Unable to open service dir %s: %s", path, strerror(errno)); return -1; } while ((e = readdir(d)) != NULL) { char full_path[PATH_MAX]; struct service *service; - size_t len= strlen(e->d_name); + size_t len = strlen(e->d_name); if (len < (strlen(SERVICE_SUFFIX) + 1)) continue; |