astyle --formatted --mode=c --indent=spaces=2 --indent-switches --indent-preprocessor --keep-one-line-blocks --max-instatement-indent=60 --brackets=linux --pad-oper --unpad-paren --pad-header --align-pointer=name

This commit is contained in:
Philippe Teuwen 2012-05-29 15:55:35 +00:00
parent 01303fab0d
commit 568317929d
21 changed files with 94 additions and 94 deletions

View file

@ -88,7 +88,7 @@ target_io(nfc_target *pnt, const uint8_t *pbtInput, const size_t szInput, uint8_
case 0x30: // Mifare read
// block address is in pbtInput[1]
*pszOutput = 15;
strcpy((char*)pbtOutput, "You read block ");
strcpy((char *)pbtOutput, "You read block ");
pbtOutput[15] = pbtInput[1];
break;
case 0x50: // HLTA (ISO14443-3)

View file

@ -63,7 +63,7 @@ static void stop_polling(int sig)
}
static void
print_usage(const char* progname)
print_usage(const char *progname)
{
printf("usage: %s [-v]\n", progname);
printf(" -v\t verbose display\n");

View file

@ -67,14 +67,14 @@
#define MAX_FRAME_LEN 264
int main(int argc, const char* argv[])
int main(int argc, const char *argv[])
{
nfc_device *pnd;
uint8_t abtRx[MAX_FRAME_LEN];
uint8_t abtTx[MAX_FRAME_LEN];
size_t szRx = sizeof(abtRx);
size_t szTx;
FILE* input = NULL;
FILE *input = NULL;
if (argc >= 2) {
if ((input = fopen(argv[1], "r")) == NULL) {