summaryrefslogtreecommitdiffstats
path: root/hcid/main.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-23 13:41:43 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-23 13:41:43 +0000
commitee7892fc1a1fef191fb629f2e01757898878b109 (patch)
tree0bf92ff991e2f246162f9782e688986cf992c83c /hcid/main.c
parent7852b73496883c9a8585cbd6441e5d96300b600e (diff)
Minor coding correction
Diffstat (limited to 'hcid/main.c')
-rw-r--r--hcid/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/main.c b/hcid/main.c
index efef8e36..6fb84bbc 100644
--- a/hcid/main.c
+++ b/hcid/main.c
@@ -481,8 +481,8 @@ static void init_device(int dev_id)
if (hcid.offmode == HCID_OFFMODE_DEVDOWN) {
char mode[16];
- if (read_device_mode(&di.bdaddr, mode, sizeof(mode)) == 0
- && strcmp(mode, "off") == 0) {
+ if (read_device_mode(&di.bdaddr, mode, sizeof(mode)) == 0 &&
+ strcmp(mode, MODE_OFF) == 0) {
ioctl(dd, HCIDEVDOWN, dev_id);
exit(0);
}