summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-11-25 12:35:04 +0200
committerAlon Levy <alevy@redhat.com>2010-12-09 13:36:19 +0200
commit93cef049b1625103a246301d6076547207a5af49 (patch)
tree4ababe4643d6f19bb2b041d53fdd626fe576d40b
parent7f32c6a153fdfe17875e2342f67aac331f59d1da (diff)
libcaccard: coding style: remove tabs
-rw-r--r--card_7816.c12
-rw-r--r--vcard.c10
2 files changed, 11 insertions, 11 deletions
diff --git a/card_7816.c b/card_7816.c
index ea23b03..e2d8466 100644
--- a/card_7816.c
+++ b/card_7816.c
@@ -99,7 +99,7 @@ vcard_response_new(VCard *card, unsigned char *buf,
VCardResponse *new_response;
if (len > Le) {
- return vcard_init_buffer_response(card, buf, len);
+ return vcard_init_buffer_response(card, buf, len);
}
new_response = vcard_response_new_data(buf,len);
if (new_response == NULL) {
@@ -119,7 +119,7 @@ vcard_response_new_bytes(VCard *card, unsigned char *buf, int len, int Le,
VCardResponse *new_response;
if (len > Le) {
- return vcard_init_buffer_response(card, buf, len);
+ return vcard_init_buffer_response(card, buf, len);
}
new_response = vcard_response_new_data(buf,len);
if (new_response == NULL) {
@@ -753,11 +753,11 @@ vcard_process_apdu(VCard *card, VCardAPDU *apdu, VCardResponse **response)
}
buffer_response = vcard_get_buffer_response(card);
if (buffer_response && apdu->a_ins != VCARD7816_INS_GET_RESPONSE) {
- /* clear out buffer_response, return an error */
+ /* clear out buffer_response, return an error */
vcard_set_buffer_response(card,NULL);
vcard_buffer_response_delete(buffer_response);
- *response = vcard_make_response(VCARD7816_STATUS_EXC_ERROR);
- return VCARD_DONE;
+ *response = vcard_make_response(VCARD7816_STATUS_EXC_ERROR);
+ return VCARD_DONE;
}
status = vcard_process_applet_apdu(card, apdu, response);
@@ -772,7 +772,7 @@ vcard_process_apdu(VCard *card, VCardAPDU *apdu, VCardResponse **response)
case VCARD_DIRECT:
/* if we are type direct, then the applet should handle everything */
assert("VCARD_DIRECT: applet failure");
- break;
+ break;
}
*response =
vcard_make_response(VCARD7816_STATUS_ERROR_COMMAND_NOT_SUPPORTED);
diff --git a/vcard.c b/vcard.c
index 2ac48f0..9672001 100644
--- a/vcard.c
+++ b/vcard.c
@@ -73,12 +73,12 @@ vcard_reset(VCard *card, VCardPower power)
VCardApplet *applet = NULL;
if (card->type == VCARD_DIRECT) {
- /* select the last applet */
+ /* select the last applet */
VCardApplet *current_applet = NULL;
for (current_applet = card->applet_list; current_applet;
current_applet = current_applet->next) {
- applet = current_applet;
- }
+ applet = current_applet;
+ }
}
for (i=0; i < MAX_CHANNEL; i++) {
card->current_applet[i] = applet;
@@ -218,8 +218,8 @@ void
vcard_get_atr(VCard *vcard, unsigned char *atr, int *atr_len)
{
if (vcard->vcard_get_atr) {
- (*vcard->vcard_get_atr)(vcard, atr, atr_len);
- return;
+ (*vcard->vcard_get_atr)(vcard, atr, atr_len);
+ return;
}
vcard_emul_get_atr(vcard, atr, atr_len);
}