mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
more use of const
This commit is contained in:
parent
7801abf7a5
commit
31645c56b0
2 changed files with 5 additions and 5 deletions
|
@ -74,7 +74,7 @@ void Dbprintf(const char *fmt, ...) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// prints HEX & ASCII
|
// prints HEX & ASCII
|
||||||
void Dbhexdump(int len, uint8_t *d, bool bAsci) {
|
void Dbhexdump(int len, const uint8_t *d, bool bAsci) {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
char ascii[9];
|
char ascii[9];
|
||||||
|
|
||||||
|
@ -103,9 +103,9 @@ void Dbhexdump(int len, uint8_t *d, bool bAsci) {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_result(const char *name, uint8_t *buf, size_t len) {
|
void print_result(const char *name, const uint8_t *buf, size_t len) {
|
||||||
|
|
||||||
uint8_t *p = buf;
|
const uint8_t *p = buf;
|
||||||
uint16_t tmp = len & 0xFFF0;
|
uint16_t tmp = len & 0xFFF0;
|
||||||
|
|
||||||
for (; p - buf < tmp; p += 16) {
|
for (; p - buf < tmp; p += 16) {
|
||||||
|
|
|
@ -26,8 +26,8 @@ void DbpString(const char *str);
|
||||||
void DbpStringEx(uint32_t flags, const char *src, size_t srclen);
|
void DbpStringEx(uint32_t flags, const char *src, size_t srclen);
|
||||||
void Dbprintf(const char *fmt, ...);
|
void Dbprintf(const char *fmt, ...);
|
||||||
void DbprintfEx(uint32_t flags, const char *fmt, ...);
|
void DbprintfEx(uint32_t flags, const char *fmt, ...);
|
||||||
void Dbhexdump(int len, uint8_t *d, bool bAsci);
|
void Dbhexdump(int len, const uint8_t *d, bool bAsci);
|
||||||
void print_result(const char *name, uint8_t *buf, size_t len);
|
void print_result(const char *name, const uint8_t *buf, size_t len);
|
||||||
//void PrintToSendBuffer(void);
|
//void PrintToSendBuffer(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue