mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 14:13:42 -07:00
fixed compiler errors
This commit is contained in:
parent
2acff2ef06
commit
eb906d6a7e
3 changed files with 3 additions and 13 deletions
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include "dump.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#define PRINT_INDENT(level) {for (int i = 0; i < (level); i++) fprintf(f, "\t");}
|
||||
|
||||
|
@ -36,8 +37,6 @@ void dump_buffer_simple(const unsigned char *ptr, size_t len, FILE *f)
|
|||
void dump_buffer(const unsigned char *ptr, size_t len, FILE *f, int level)
|
||||
{
|
||||
int i, j;
|
||||
char buf[64] = {0};
|
||||
memset(buf, ' ', tabs > 64 ? 64 : tabs);
|
||||
|
||||
if (!f)
|
||||
f = stdout;
|
||||
|
@ -59,7 +58,3 @@ void dump_buffer(const unsigned char *ptr, size_t len, FILE *f, int level)
|
|||
}
|
||||
}
|
||||
|
||||
void dump_buffer(const unsigned char *ptr, size_t len, FILE *f) {
|
||||
dump_buffer_tab(ptr, len, f, 4);
|
||||
}
|
||||
|
||||
|
|
|
@ -107,7 +107,7 @@ void TLVPrintFromTLV(struct tlvdb *tlv) {
|
|||
if (!tlv)
|
||||
return;
|
||||
|
||||
tlvdb_visit(tlv, print_cb, NULL);
|
||||
tlvdb_visit(tlv, print_cb, NULL, 0);
|
||||
}
|
||||
|
||||
void TLVPrintAIDlistFromSelectTLV(struct tlvdb *tlv) {
|
||||
|
|
|
@ -345,7 +345,6 @@ void tlvdb_add(struct tlvdb *tlvdb, struct tlvdb *other)
|
|||
void tlvdb_visit(const struct tlvdb *tlvdb, tlv_cb cb, void *data, int level)
|
||||
{
|
||||
struct tlvdb *next = NULL;
|
||||
lvl++;
|
||||
|
||||
if (!tlvdb)
|
||||
return;
|
||||
|
@ -357,10 +356,6 @@ void tlvdb_visit(const struct tlvdb *tlvdb, tlv_cb cb, void *data, int level)
|
|||
}
|
||||
}
|
||||
|
||||
void tlvdb_visit(const struct tlvdb *tlvdb, tlv_cb cb, void *data) {
|
||||
tlvdb_visit_ex(tlvdb, cb, data, 0);
|
||||
}
|
||||
|
||||
static const struct tlvdb *tlvdb_next(const struct tlvdb *tlvdb)
|
||||
{
|
||||
if (tlvdb->children)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue