diff options
author | Uwe Stuehler <uwe@cvs.openbsd.org> | 2008-11-26 06:51:05 +0000 |
---|---|---|
committer | Uwe Stuehler <uwe@cvs.openbsd.org> | 2008-11-26 06:51:05 +0000 |
commit | 9dc81ca0a6153a852c7e65abefc7cc4718473541 (patch) | |
tree | 9656729564732522d664283eff0287e742db5642 /usr.sbin/btctl | |
parent | fb3784d3e4725a0c6721dc9fbd59e97ca60eee8f (diff) |
pin_len -> pin_size
Diffstat (limited to 'usr.sbin/btctl')
-rw-r--r-- | usr.sbin/btctl/btctl.h | 4 | ||||
-rw-r--r-- | usr.sbin/btctl/parse.y | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/btctl/btctl.h b/usr.sbin/btctl/btctl.h index 7bf2a0e9de2..75f958e99dd 100644 --- a/usr.sbin/btctl/btctl.h +++ b/usr.sbin/btctl/btctl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: btctl.h,v 1.2 2008/11/25 17:13:53 uwe Exp $ */ +/* $OpenBSD: btctl.h,v 1.3 2008/11/26 06:51:04 uwe Exp $ */ /* * Copyright (c) 2008 Uwe Stuehler <uwe@openbsd.org> @@ -38,7 +38,7 @@ typedef struct { bdaddr_t addr; uint16_t type; uint8_t pin[HCI_PIN_SIZE]; - uint8_t pin_len; + uint8_t pin_size; } btctl_attach_stmt; /* parse.y */ diff --git a/usr.sbin/btctl/parse.y b/usr.sbin/btctl/parse.y index 164ae1bbc46..644ab248720 100644 --- a/usr.sbin/btctl/parse.y +++ b/usr.sbin/btctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.2 2008/11/25 17:13:53 uwe Exp $ */ +/* $OpenBSD: parse.y,v 1.3 2008/11/26 06:51:04 uwe Exp $ */ /* * Copyright (c) 2008 Uwe Stuehler <uwe@openbsd.org> @@ -143,10 +143,10 @@ main if ($4 != NULL) { strbufcpy("PIN code", $4, stmt.pin); - stmt.pin_len = strlen(stmt.pin); + stmt.pin_size = strlen(stmt.pin); free($4); } else - stmt.pin_len = 0; + stmt.pin_size = 0; switch (exec_stmt(BTCTL_ATTACH_STMT, &stmt, sizeof(stmt))) { case 0: break; |