unify test - step 2
This commit is contained in:
1 parent
875b3c44b4
commit
ad292e8810
70 files changed
+272
-195
No files matched your search
@@ -86,7 +86,7 @@ serial_port uart_open(const char *pcPortName, uint32_t speed, bool slient) {
|
||||
serial_port_unix_t_t *sp = calloc(sizeof(serial_port_unix_t_t), sizeof(uint8_t));
|
||||
|
||||
if (sp == 0) {
|
||||
PrintAndLogEx(ERR, "UART failed to allocate memory");
|
||||
PrintAndLogEx(WARNING, "Failed to allocate memory");
|
||||
return INVALID_SERIAL_PORT;
|
||||
}
|
||||
|
||||
|
||||
@@ -84,11 +84,10 @@ static int uart_reconfigure_timeouts_polling(serial_port sp) {
|
||||
}
|
||||
|
||||
serial_port uart_open(const char *pcPortName, uint32_t speed, bool slient) {
|
||||
char acPortName[255] = {0};
|
||||
serial_port_windows_t *sp = calloc(sizeof(serial_port_windows_t), sizeof(uint8_t));
|
||||
|
||||
if (sp == 0) {
|
||||
PrintAndLogEx(WARNING, "UART failed to allocate memory\n");
|
||||
serial_port_windows_t *sp = calloc(sizeof(serial_port_windows_t), sizeof(uint8_t));
|
||||
if (sp == NULL) {
|
||||
PrintAndLogEx(WARNING, "Failed to allocate memory");
|
||||
return INVALID_SERIAL_PORT;
|
||||
}
|
||||
|
||||
@@ -99,6 +98,8 @@ serial_port uart_open(const char *pcPortName, uint32_t speed, bool slient) {
|
||||
g_conn.send_via_local_ip = false;
|
||||
g_conn.send_via_ip = PM3_NONE;
|
||||
|
||||
char acPortName[255] = {0};
|
||||
|
||||
char *prefix = str_dup(pcPortName);
|
||||
if (prefix == NULL) {
|
||||
PrintAndLogEx(ERR, "error: string duplication");
|
||||
|
||||
Reference in new issue
Block a user