mirror of
https://github.com/pcsc-for-php/pcsc.git
synced 2026-08-18 01:11:30 +02:00
Replaced tabs with 2 whitespaces in pcsc.c
This commit is contained in:
parent
aac7782210
commit
1226d9ace8
1 changed files with 134 additions and 135 deletions
3
pcsc.c
3
pcsc.c
|
|
@ -575,7 +575,7 @@ PHP_FUNCTION(scard_list_readers)
|
||||||
Return a handle to the card */
|
Return a handle to the card */
|
||||||
PHP_FUNCTION(scard_connect)
|
PHP_FUNCTION(scard_connect)
|
||||||
{
|
{
|
||||||
DWORD dwPreferredProtocol = SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1;
|
DWORD dwPreferredProtocol = SCARD_PROTOCOL_RAW | SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1;
|
||||||
DWORD dwCurrentProtocol;
|
DWORD dwCurrentProtocol;
|
||||||
SCARDHANDLE hCard = 0;
|
SCARDHANDLE hCard = 0;
|
||||||
LONG rc = 0;
|
LONG rc = 0;
|
||||||
|
|
@ -751,7 +751,6 @@ PHP_FUNCTION(scard_status)
|
||||||
add_assoc_long(return_value, "SCARD_SPECIFIC", 1);
|
add_assoc_long(return_value, "SCARD_SPECIFIC", 1);
|
||||||
|
|
||||||
switch (dwProtocol) {
|
switch (dwProtocol) {
|
||||||
/* Maybe change to bool type here instead of add_assoc_long...? */
|
|
||||||
case SCARD_PROTOCOL_RAW : add_assoc_long(return_value, "SCARD_PROTOCOL_RAW", 1);
|
case SCARD_PROTOCOL_RAW : add_assoc_long(return_value, "SCARD_PROTOCOL_RAW", 1);
|
||||||
add_assoc_string(return_value, "PROTOCOL", "RAW");
|
add_assoc_string(return_value, "PROTOCOL", "RAW");
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue