summaryrefslogtreecommitdiff
path: root/vcard.c
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-02-23 16:50:44 +0200
committerAlon Levy <alevy@redhat.com>2011-02-23 16:50:44 +0200
commit27728857b41643bd1f3003db2827126a3e9234f3 (patch)
treef76d3a670354ec0351df6d7d3875207f2ed3c808 /vcard.c
parentc0aa647f37f029f52a15f81587701eab44e7c438 (diff)
checkpatch.pl - identical to v20 proposal on qemu-develHEADmaster
Diffstat (limited to 'vcard.c')
-rw-r--r--vcard.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/vcard.c b/vcard.c
index 9672001..fff766f 100644
--- a/vcard.c
+++ b/vcard.c
@@ -73,14 +73,14 @@ 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++) {
+ for (i = 0; i < MAX_CHANNEL; i++) {
card->current_applet[i] = applet;
}
if (card->vcard_buffer_response) {
@@ -164,7 +164,7 @@ vcard_new(VCardEmul *private, VCardEmulFree private_free)
new_card = (VCard *)malloc(sizeof(VCard));
new_card->applet_list = NULL;
- for (i=0; i < MAX_CHANNEL; i++) {
+ for (i = 0; i < MAX_CHANNEL; i++) {
new_card->current_applet[i] = NULL;
}
new_card->vcard_buffer_response = NULL;
@@ -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);
}
@@ -227,7 +227,7 @@ vcard_get_atr(VCard *vcard, unsigned char *atr, int *atr_len)
void
vcard_set_atr_func(VCard *card, VCardGetAtr vcard_get_atr)
{
- card-> vcard_get_atr = vcard_get_atr;
+ card->vcard_get_atr = vcard_get_atr;
}
@@ -240,7 +240,7 @@ vcard_add_applet(VCard *card, VCardApplet *applet)
if (card->type == VCARD_DIRECT) {
int i;
- for (i=0; i < MAX_CHANNEL; i++) {
+ for (i = 0; i < MAX_CHANNEL; i++) {
card->current_applet[i] = applet;
}
}