summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2003-07-24 17:34:34 +0000
committerMarcel Holtmann <marcel@holtmann.org>2003-07-24 17:34:34 +0000
commit6b410af5c3e83f36ed8b5a620f1ab3029a271058 (patch)
tree24b7ec40b12997b4f13de490919e3673fc1df6eb /hcid
parent8891e1ab4d0832e12815bb94689fd0f87c06a11f (diff)
Kill usage of strtoba() and batostr()
Diffstat (limited to 'hcid')
-rw-r--r--hcid/security.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/hcid/security.c b/hcid/security.c
index 36fb6a71..7aa9a7a4 100644
--- a/hcid/security.c
+++ b/hcid/security.c
@@ -227,8 +227,7 @@ int read_pin_code(void)
static void call_pin_helper(int dev, struct hci_conn_info *ci)
{
pin_code_reply_cp pr;
- char str[255], *pin, name[20];
- bdaddr_t ba;
+ char addr[12], str[255], *pin, name[20];
FILE *pipe;
int len;
@@ -252,10 +251,10 @@ static void call_pin_helper(int dev, struct hci_conn_info *ci)
name[0] = 0;
//hci_remote_name(dev, &ci->bdaddr, sizeof(name), name, 0);
- baswap(&ba, &ci->bdaddr);
+ ba2str(&ci->bdaddr, addr);
sprintf(str, "%s %s %s \'%s\'", hcid.pin_helper,
ci->out ? "out" : "in",
- batostr(&ba), name);
+ addr, name);
setenv("PATH", "/bin:/usr/bin:/usr/local/bin", 1);