diff options
author | Alon Levy <alevy@redhat.com> | 2010-07-28 20:10:04 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2010-07-28 20:10:04 +0300 |
commit | b953e440c2b323ee8cdb35c74f7886fd9c547f16 (patch) | |
tree | 8ae34db13454b8bb6c4243589d025567f2f4db0d /vcard.c | |
parent | f8d3142a14d79ed183ba970419f188d35f62e9cc (diff) |
white space fixes
Diffstat (limited to 'vcard.c')
-rw-r--r-- | vcard.c | 44 |
1 files changed, 22 insertions, 22 deletions
@@ -33,12 +33,12 @@ vcard_buffer_response_new(unsigned char *buffer, int size) new_buffer = (VCardBufferResponse *)malloc(sizeof(VCardBufferResponse)); if (new_buffer == NULL) { - return NULL; + return NULL; } new_buffer->buffer = (unsigned char *)malloc(size); if (new_buffer->buffer == NULL) { - free(new_buffer); - return NULL; + free(new_buffer); + return NULL; } memcpy(new_buffer->buffer, buffer, size); new_buffer->buffer_len = size; @@ -51,10 +51,10 @@ void vcard_buffer_response_delete(VCardBufferResponse *buffer_response) { if (buffer_response == NULL) { - return; + return; } if (buffer_response->buffer) { - free(buffer_response->buffer); + free(buffer_response->buffer); } free(buffer_response); } @@ -131,7 +131,7 @@ vcard_set_applet_private(VCardApplet *applet, VCardAppletPrivate *private, VCardAppletPrivateFree private_free) { if (applet->applet_private_free) { - applet->applet_private_free(applet->applet_private); + applet->applet_private_free(applet->applet_private); } applet->applet_private = private; applet->applet_private_free = private_free; @@ -160,7 +160,7 @@ VCard * vcard_reference(VCard *vcard) { if (vcard == NULL) { - return NULL; + return NULL; } vcard->reference_count++; return vcard; @@ -173,21 +173,21 @@ vcard_free(VCard *vcard) VCardApplet *next_applet = NULL; if (vcard == NULL) { - return; + return; } vcard->reference_count--; if (vcard->reference_count != 0) { - return; + return; } if (vcard->vcard_private_free) { - (*vcard->vcard_private_free)(vcard->vcard_private); - vcard->vcard_private_free = 0; - vcard->vcard_private = 0; + (*vcard->vcard_private_free)(vcard->vcard_private); + vcard->vcard_private_free = 0; + vcard->vcard_private = 0; } for (current_applet = vcard->applet_list; current_applet; current_applet = next_applet) { - next_applet = current_applet->next; - vcard_delete_applet(current_applet); + next_applet = current_applet->next; + vcard_delete_applet(current_applet); } vcard_buffer_response_delete(vcard->vcard_buffer_response); free(vcard); @@ -213,11 +213,11 @@ vcard_find_applet(VCard *card, unsigned char *aid, int aid_len) for (current_applet = card->applet_list; current_applet; current_applet = current_applet->next) { - if (current_applet->aid_len != aid_len) { - continue; + if (current_applet->aid_len != aid_len) { + continue; } if (memcmp(current_applet->aid, aid, aid_len) == 0) { - break; + break; } } return current_applet; @@ -236,7 +236,7 @@ vcard_get_current_applet_private(VCard *card, int channel) VCardApplet *applet = card->current_applet[channel]; if (applet == NULL) { - return NULL; + return NULL; } return applet->applet_private; } @@ -245,7 +245,7 @@ VCardStatus vcard_process_applet_apdu(VCard *card, VCardAPDU *apdu, VCardResponse **response) { if (card->current_applet[apdu->a_channel]) { - return card->current_applet[apdu->a_channel]->process_apdu(card,apdu,response); + return card->current_applet[apdu->a_channel]->process_apdu(card,apdu,response); } return VCARD_NEXT; } @@ -257,13 +257,13 @@ vcard_process_applet_apdu(VCard *card, VCardAPDU *apdu, VCardResponse **response VCardBufferResponse * vcard_get_buffer_response(VCard *card) { - return card->vcard_buffer_response; + return card->vcard_buffer_response; } void vcard_set_buffer_response(VCard *card, VCardBufferResponse *buffer) { - card->vcard_buffer_response = buffer; + card->vcard_buffer_response = buffer; } @@ -271,7 +271,7 @@ vcard_set_buffer_response(VCard *card, VCardBufferResponse *buffer) VCardType vcard_get_type(VCard *card) { - return card->type; + return card->type; } void |