mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
bootrom fix warnings
This commit is contained in:
parent
8e4aba5e53
commit
d7422aaf99
1 changed files with 3 additions and 3 deletions
|
@ -79,7 +79,7 @@ static void Fatal(void) {
|
||||||
for (;;) {};
|
for (;;) {};
|
||||||
}
|
}
|
||||||
|
|
||||||
static void UsbPacketReceived(uint8_t *packet, int len) {
|
static void UsbPacketReceived(uint8_t *packet) {
|
||||||
int i, dont_ack = 0;
|
int i, dont_ack = 0;
|
||||||
PacketCommandOLD *c = (PacketCommandOLD *)packet;
|
PacketCommandOLD *c = (PacketCommandOLD *)packet;
|
||||||
|
|
||||||
|
@ -220,7 +220,7 @@ static void flash_mode(void) {
|
||||||
// Check if there is a usb packet available
|
// Check if there is a usb packet available
|
||||||
if (usb_poll_validate_length()) {
|
if (usb_poll_validate_length()) {
|
||||||
if (usb_read(rx, sizeof(rx))) {
|
if (usb_read(rx, sizeof(rx))) {
|
||||||
UsbPacketReceived(rx, sizeof(rx));
|
UsbPacketReceived(rx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -316,7 +316,7 @@ void BootROM(void) {
|
||||||
|
|
||||||
if (!common_area_present) {
|
if (!common_area_present) {
|
||||||
/* Common area not ok, initialize it */
|
/* Common area not ok, initialize it */
|
||||||
int i;
|
size_t i;
|
||||||
/* Makeshift memset, no need to drag util.c into this */
|
/* Makeshift memset, no need to drag util.c into this */
|
||||||
for (i = 0; i < sizeof(common_area); i++)
|
for (i = 0; i < sizeof(common_area); i++)
|
||||||
((char *)&common_area)[i] = 0;
|
((char *)&common_area)[i] = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue