Fix white spaces inconsistencies.

This commit is contained in:
Romain Tartière 2015-05-12 13:19:00 +02:00
parent 48e4f979a9
commit faac4ae5d8
15 changed files with 26 additions and 26 deletions

View file

@ -161,7 +161,7 @@ main(int argc, char *argv[])
}
}
// Remaining args, if any, are in argv[optind .. (argc-1)]
memcpy(default_keys, default_keys_int, sizeof(default_keys_int));
if ((argc - optind) > 0)

View file

@ -239,7 +239,7 @@ error:
freefare_free_tags (tags);
nfc_close (device);
}
nfc_exit (context);
exit (error);
}

View file

@ -203,7 +203,7 @@ main(int argc, char *argv[])
nfc_connstring devices[8];
size_t device_count;
nfc_context *context;
nfc_init (&context);
if (context == NULL)

View file

@ -105,7 +105,7 @@ main(int argc, char *argv[])
for (size_t d = 0; d < device_count; d++) {
device = nfc_open (context, devices[d]);
if (!device) {
warnx ("nfc_open() failed.");
error = EXIT_FAILURE;

View file

@ -72,7 +72,7 @@ main(int argc, char *argv[])
nfc_connstring devices[8];
size_t device_count;
nfc_context *context;
nfc_init (&context);
if (context == NULL)

View file

@ -82,7 +82,7 @@ main(int argc, char *argv[])
nfc_connstring devices[8];
size_t device_count;
nfc_context *context;
nfc_init (&context);
if (context == NULL)

View file

@ -82,7 +82,7 @@ main(int argc, char *argv[])
nfc_connstring devices[8];
size_t device_count;
nfc_context *context;
nfc_init (&context);
if (context == NULL)

View file

@ -36,7 +36,7 @@ main(int argc, char *argv[])
nfc_connstring devices[8];
size_t device_count;
nfc_context *context;
nfc_init (&context);
if (context == NULL)

View file

@ -121,7 +121,7 @@ main(int argc, char *argv[])
nfc_connstring devices[8];
size_t device_count;
nfc_context *context;
nfc_init (&context);
if (context == NULL)
@ -133,7 +133,7 @@ main(int argc, char *argv[])
for (size_t d = 0; d < device_count; d++) {
device = nfc_open (context, devices[d]);
if (!device) {
warnx ("nfc_open() failed.");
error = EXIT_FAILURE;

View file

@ -150,7 +150,7 @@ main(int argc, char *argv[])
nfc_connstring devices[8];
size_t device_count;
nfc_context *context;
nfc_init (&context);
if (context == NULL)
@ -162,7 +162,7 @@ main(int argc, char *argv[])
for (size_t d = 0; d < device_count; d++) {
device = nfc_open (context, devices[d]);
if (!device) {
warnx ("nfc_open() failed.");
error = EXIT_FAILURE;

View file

@ -269,7 +269,7 @@ struct mifare_ultralight_tag {
#define ASSERT_MIFARE_ULTRALIGHT_C(tag) do { if (! IS_MIFARE_ULTRALIGHT_C(tag)) return errno = ENODEV, -1; } while (0)
/*
* FreefareTag cast macros
* FreefareTag cast macros
*
* This macros are intended to provide a convenient way to cast abstract
* FreefareTag structures to concrete Tags (e.g. MIFARE Classic tag).

View file

@ -32,7 +32,7 @@ cut_setup (void)
int res;
nfc_connstring devices[8];
size_t device_count;
nfc_init (&context);
cut_assert_not_null (context, cut_message ("Unable to init libnfc (malloc)"));
@ -42,7 +42,7 @@ cut_setup (void)
for (size_t i = 0; i < device_count; i++) {
device = nfc_open (context, devices[i]);
if (!device)
if (!device)
cut_omit ("nfc_open() failed.");
tags = freefare_get_tags (device);
@ -79,7 +79,7 @@ cut_teardown (void)
if (device)
nfc_close (device);
nfc_exit (context);
}

View file

@ -32,7 +32,7 @@ cut_setup (void)
int res;
nfc_connstring devices[8];
size_t device_count;
nfc_init (&context);
cut_assert_not_null (context, cut_message ("Unable to init libnfc (malloc)"));
@ -43,7 +43,7 @@ cut_setup (void)
for (size_t i = 0; i < device_count; i++) {
device = nfc_open (context, devices[i]);
if (!device)
if (!device)
cut_omit ("nfc_open() failed.");
tags = freefare_get_tags (device);
@ -91,9 +91,9 @@ cut_teardown (void)
tags = NULL;
}
if (device)
if (device)
nfc_close (device);
nfc_exit (context);
}

View file

@ -32,7 +32,7 @@ cut_setup (void)
int res;
nfc_connstring devices[8];
size_t device_count;
nfc_init (&context);
cut_assert_not_null (context, cut_message ("Unable to init libnfc (malloc)"));
@ -43,7 +43,7 @@ cut_setup (void)
for (size_t i = 0; i < device_count; i++) {
device = nfc_open (context, devices[i]);
if (!device)
if (!device)
cut_omit ("nfc_open() failed.");
tags = freefare_get_tags (device);
@ -88,7 +88,7 @@ cut_teardown (void)
if (device)
nfc_close (device);
nfc_exit (context);
}

View file

@ -32,7 +32,7 @@ cut_setup (void)
int res;
nfc_connstring devices[8];
size_t device_count;
nfc_init (&context);
cut_assert_not_null (context, cut_message ("Unable to init libnfc (malloc)"));
@ -43,7 +43,7 @@ cut_setup (void)
for (size_t i = 0; i < device_count; i++) {
device = nfc_open (context, devices[i]);
if (!device)
if (!device)
cut_omit ("nfc_open() failed.");
tags = freefare_get_tags (device);
@ -81,7 +81,7 @@ cut_teardown (void)
if (device)
nfc_close (device);
nfc_exit (context);
}