From 6b410af5c3e83f36ed8b5a620f1ab3029a271058 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 24 Jul 2003 17:34:34 +0000 Subject: Kill usage of strtoba() and batostr() --- hcid/security.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'hcid/security.c') 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); -- cgit