summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-04-25 13:46:05 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-04-25 13:46:05 +0000
commit806640b12ffdba3dd6ad9a3b98196837d01c2b7f (patch)
tree115b8b5e57a02334747b9a6ea09b26171081e266 /hcid
parentf85f711a31fb3489580dc66b23c566cec12b1467 (diff)
Small coding style fixes
Diffstat (limited to 'hcid')
-rw-r--r--hcid/security.c13
-rw-r--r--hcid/storage.c4
2 files changed, 9 insertions, 8 deletions
diff --git a/hcid/security.c b/hcid/security.c
index 6f0aa10f..199b93d3 100644
--- a/hcid/security.c
+++ b/hcid/security.c
@@ -79,17 +79,17 @@ struct hci_req_data *hci_req_data_new(int dev_id, const bdaddr_t *dba, uint16_t
free(data);
return NULL;
}
-
+
memcpy(data->cparam, cparam, clen);
bacpy(&data->dba, dba);
data->dev_id = dev_id;
data->status = REQ_PENDING;
- data->ogf = ogf;
- data->ocf = ocf;
- data->event = event;
- data->clen = clen;
+ data->ogf = ogf;
+ data->ocf = ocf;
+ data->event = event;
+ data->clen = clen;
return data;
}
@@ -753,7 +753,8 @@ static gboolean io_security_event(GIOChannel *chan, GIOCondition cond, gpointer
auth_complete(dev, &di->bdaddr, ptr);
break;
}
- /* check for pending cmd request */
+
+ /* Check for pending command request */
check_pending_hci_req(di->dev_id, eh->evt);
if (hci_test_bit(HCI_SECMGR, &di->flags))
diff --git a/hcid/storage.c b/hcid/storage.c
index 95ca8bd3..473c69de 100644
--- a/hcid/storage.c
+++ b/hcid/storage.c
@@ -48,7 +48,7 @@ int write_discoverable_timeout(const char *address, int timeout)
char filename[PATH_MAX + 1], str[32];
snprintf(str, sizeof(str), "%d", timeout);
-
+
snprintf(filename, PATH_MAX, "%s/%s/config", STORAGEDIR, address);
create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
@@ -100,7 +100,7 @@ int read_device_mode(bdaddr_t *bdaddr, char *mode, int length)
return -ENOENT;
strncpy(mode, str, length);
- mode[length-1] = '\0';
+ mode[length - 1] = '\0';
free(str);