Fix white spaces inconsistencies.
This commit is contained in:
parent
48e4f979a9
commit
faac4ae5d8
15 changed files with 26 additions and 26 deletions
|
|
@ -161,7 +161,7 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Remaining args, if any, are in argv[optind .. (argc-1)]
|
// Remaining args, if any, are in argv[optind .. (argc-1)]
|
||||||
|
|
||||||
memcpy(default_keys, default_keys_int, sizeof(default_keys_int));
|
memcpy(default_keys, default_keys_int, sizeof(default_keys_int));
|
||||||
|
|
||||||
if ((argc - optind) > 0)
|
if ((argc - optind) > 0)
|
||||||
|
|
|
||||||
|
|
@ -239,7 +239,7 @@ error:
|
||||||
freefare_free_tags (tags);
|
freefare_free_tags (tags);
|
||||||
nfc_close (device);
|
nfc_close (device);
|
||||||
}
|
}
|
||||||
|
|
||||||
nfc_exit (context);
|
nfc_exit (context);
|
||||||
exit (error);
|
exit (error);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -203,7 +203,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
nfc_connstring devices[8];
|
nfc_connstring devices[8];
|
||||||
size_t device_count;
|
size_t device_count;
|
||||||
|
|
||||||
nfc_context *context;
|
nfc_context *context;
|
||||||
nfc_init (&context);
|
nfc_init (&context);
|
||||||
if (context == NULL)
|
if (context == NULL)
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
for (size_t d = 0; d < device_count; d++) {
|
for (size_t d = 0; d < device_count; d++) {
|
||||||
device = nfc_open (context, devices[d]);
|
device = nfc_open (context, devices[d]);
|
||||||
|
|
||||||
if (!device) {
|
if (!device) {
|
||||||
warnx ("nfc_open() failed.");
|
warnx ("nfc_open() failed.");
|
||||||
error = EXIT_FAILURE;
|
error = EXIT_FAILURE;
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
nfc_connstring devices[8];
|
nfc_connstring devices[8];
|
||||||
size_t device_count;
|
size_t device_count;
|
||||||
|
|
||||||
nfc_context *context;
|
nfc_context *context;
|
||||||
nfc_init (&context);
|
nfc_init (&context);
|
||||||
if (context == NULL)
|
if (context == NULL)
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
nfc_connstring devices[8];
|
nfc_connstring devices[8];
|
||||||
size_t device_count;
|
size_t device_count;
|
||||||
|
|
||||||
nfc_context *context;
|
nfc_context *context;
|
||||||
nfc_init (&context);
|
nfc_init (&context);
|
||||||
if (context == NULL)
|
if (context == NULL)
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
nfc_connstring devices[8];
|
nfc_connstring devices[8];
|
||||||
size_t device_count;
|
size_t device_count;
|
||||||
|
|
||||||
nfc_context *context;
|
nfc_context *context;
|
||||||
nfc_init (&context);
|
nfc_init (&context);
|
||||||
if (context == NULL)
|
if (context == NULL)
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
nfc_connstring devices[8];
|
nfc_connstring devices[8];
|
||||||
size_t device_count;
|
size_t device_count;
|
||||||
|
|
||||||
nfc_context *context;
|
nfc_context *context;
|
||||||
nfc_init (&context);
|
nfc_init (&context);
|
||||||
if (context == NULL)
|
if (context == NULL)
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
nfc_connstring devices[8];
|
nfc_connstring devices[8];
|
||||||
size_t device_count;
|
size_t device_count;
|
||||||
|
|
||||||
nfc_context *context;
|
nfc_context *context;
|
||||||
nfc_init (&context);
|
nfc_init (&context);
|
||||||
if (context == NULL)
|
if (context == NULL)
|
||||||
|
|
@ -133,7 +133,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
for (size_t d = 0; d < device_count; d++) {
|
for (size_t d = 0; d < device_count; d++) {
|
||||||
device = nfc_open (context, devices[d]);
|
device = nfc_open (context, devices[d]);
|
||||||
|
|
||||||
if (!device) {
|
if (!device) {
|
||||||
warnx ("nfc_open() failed.");
|
warnx ("nfc_open() failed.");
|
||||||
error = EXIT_FAILURE;
|
error = EXIT_FAILURE;
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
nfc_connstring devices[8];
|
nfc_connstring devices[8];
|
||||||
size_t device_count;
|
size_t device_count;
|
||||||
|
|
||||||
nfc_context *context;
|
nfc_context *context;
|
||||||
nfc_init (&context);
|
nfc_init (&context);
|
||||||
if (context == NULL)
|
if (context == NULL)
|
||||||
|
|
@ -162,7 +162,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
for (size_t d = 0; d < device_count; d++) {
|
for (size_t d = 0; d < device_count; d++) {
|
||||||
device = nfc_open (context, devices[d]);
|
device = nfc_open (context, devices[d]);
|
||||||
|
|
||||||
if (!device) {
|
if (!device) {
|
||||||
warnx ("nfc_open() failed.");
|
warnx ("nfc_open() failed.");
|
||||||
error = EXIT_FAILURE;
|
error = EXIT_FAILURE;
|
||||||
|
|
|
||||||
|
|
@ -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)
|
#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
|
* This macros are intended to provide a convenient way to cast abstract
|
||||||
* FreefareTag structures to concrete Tags (e.g. MIFARE Classic tag).
|
* FreefareTag structures to concrete Tags (e.g. MIFARE Classic tag).
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ cut_setup (void)
|
||||||
int res;
|
int res;
|
||||||
nfc_connstring devices[8];
|
nfc_connstring devices[8];
|
||||||
size_t device_count;
|
size_t device_count;
|
||||||
|
|
||||||
nfc_init (&context);
|
nfc_init (&context);
|
||||||
cut_assert_not_null (context, cut_message ("Unable to init libnfc (malloc)"));
|
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++) {
|
for (size_t i = 0; i < device_count; i++) {
|
||||||
device = nfc_open (context, devices[i]);
|
device = nfc_open (context, devices[i]);
|
||||||
if (!device)
|
if (!device)
|
||||||
cut_omit ("nfc_open() failed.");
|
cut_omit ("nfc_open() failed.");
|
||||||
|
|
||||||
tags = freefare_get_tags (device);
|
tags = freefare_get_tags (device);
|
||||||
|
|
@ -79,7 +79,7 @@ cut_teardown (void)
|
||||||
|
|
||||||
if (device)
|
if (device)
|
||||||
nfc_close (device);
|
nfc_close (device);
|
||||||
|
|
||||||
nfc_exit (context);
|
nfc_exit (context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ cut_setup (void)
|
||||||
int res;
|
int res;
|
||||||
nfc_connstring devices[8];
|
nfc_connstring devices[8];
|
||||||
size_t device_count;
|
size_t device_count;
|
||||||
|
|
||||||
nfc_init (&context);
|
nfc_init (&context);
|
||||||
cut_assert_not_null (context, cut_message ("Unable to init libnfc (malloc)"));
|
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++) {
|
for (size_t i = 0; i < device_count; i++) {
|
||||||
|
|
||||||
device = nfc_open (context, devices[i]);
|
device = nfc_open (context, devices[i]);
|
||||||
if (!device)
|
if (!device)
|
||||||
cut_omit ("nfc_open() failed.");
|
cut_omit ("nfc_open() failed.");
|
||||||
|
|
||||||
tags = freefare_get_tags (device);
|
tags = freefare_get_tags (device);
|
||||||
|
|
@ -91,9 +91,9 @@ cut_teardown (void)
|
||||||
tags = NULL;
|
tags = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (device)
|
if (device)
|
||||||
nfc_close (device);
|
nfc_close (device);
|
||||||
|
|
||||||
nfc_exit (context);
|
nfc_exit (context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ cut_setup (void)
|
||||||
int res;
|
int res;
|
||||||
nfc_connstring devices[8];
|
nfc_connstring devices[8];
|
||||||
size_t device_count;
|
size_t device_count;
|
||||||
|
|
||||||
nfc_init (&context);
|
nfc_init (&context);
|
||||||
cut_assert_not_null (context, cut_message ("Unable to init libnfc (malloc)"));
|
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++) {
|
for (size_t i = 0; i < device_count; i++) {
|
||||||
|
|
||||||
device = nfc_open (context, devices[i]);
|
device = nfc_open (context, devices[i]);
|
||||||
if (!device)
|
if (!device)
|
||||||
cut_omit ("nfc_open() failed.");
|
cut_omit ("nfc_open() failed.");
|
||||||
|
|
||||||
tags = freefare_get_tags (device);
|
tags = freefare_get_tags (device);
|
||||||
|
|
@ -88,7 +88,7 @@ cut_teardown (void)
|
||||||
|
|
||||||
if (device)
|
if (device)
|
||||||
nfc_close (device);
|
nfc_close (device);
|
||||||
|
|
||||||
nfc_exit (context);
|
nfc_exit (context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ cut_setup (void)
|
||||||
int res;
|
int res;
|
||||||
nfc_connstring devices[8];
|
nfc_connstring devices[8];
|
||||||
size_t device_count;
|
size_t device_count;
|
||||||
|
|
||||||
nfc_init (&context);
|
nfc_init (&context);
|
||||||
cut_assert_not_null (context, cut_message ("Unable to init libnfc (malloc)"));
|
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++) {
|
for (size_t i = 0; i < device_count; i++) {
|
||||||
|
|
||||||
device = nfc_open (context, devices[i]);
|
device = nfc_open (context, devices[i]);
|
||||||
if (!device)
|
if (!device)
|
||||||
cut_omit ("nfc_open() failed.");
|
cut_omit ("nfc_open() failed.");
|
||||||
|
|
||||||
tags = freefare_get_tags (device);
|
tags = freefare_get_tags (device);
|
||||||
|
|
@ -81,7 +81,7 @@ cut_teardown (void)
|
||||||
|
|
||||||
if (device)
|
if (device)
|
||||||
nfc_close (device);
|
nfc_close (device);
|
||||||
|
|
||||||
nfc_exit (context);
|
nfc_exit (context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue