mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 20:49:49 +04:00
Alloc takes no arguments
This commit is contained in:
@@ -46,7 +46,7 @@ const NfcDeviceBase nfc_device_mf_plus = {
|
|||||||
.get_base_data = (NfcDeviceGetBaseData)mf_plus_get_base_data,
|
.get_base_data = (NfcDeviceGetBaseData)mf_plus_get_base_data,
|
||||||
};
|
};
|
||||||
|
|
||||||
MfPlusData* mf_plus_alloc() {
|
MfPlusData* mf_plus_alloc(void) {
|
||||||
MfPlusData* data = malloc(sizeof(MfPlusData));
|
MfPlusData* data = malloc(sizeof(MfPlusData));
|
||||||
data->device_name = furi_string_alloc();
|
data->device_name = furi_string_alloc();
|
||||||
data->iso14443_4a_data = iso14443_4a_alloc();
|
data->iso14443_4a_data = iso14443_4a_alloc();
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ typedef struct {
|
|||||||
|
|
||||||
extern const NfcDeviceBase nfc_device_mf_plus;
|
extern const NfcDeviceBase nfc_device_mf_plus;
|
||||||
|
|
||||||
MfPlusData* mf_plus_alloc();
|
MfPlusData* mf_plus_alloc(void);
|
||||||
|
|
||||||
void mf_plus_free(MfPlusData* data);
|
void mf_plus_free(MfPlusData* data);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user