Be more CONSTant with the parameters we will not modify

This commit is contained in:
Eric Betts committed 2022-01-17 14:56:47 -08:00
1 parent 21f556149b
commit 4c9f611141
6 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -27,7 +27,7 @@
#include "util_posix.h"
#include "comms.h"
pm3_device_t *pm3_open(char *port) {
pm3_device_t *pm3_open(const char *port) {
pm3_init();
OpenProxmark(&g_session.current_device, port, false, 20, false, USART_BAUD_RATE);
if (g_session.pm3_present && (TestProxmark(g_session.current_device) != PM3_SUCCESS)) {
@@ -54,7 +54,7 @@ void pm3_close(pm3_device_t *dev) {
}
}
int pm3_console(pm3_device_t *dev, char *cmd) {
int pm3_console(pm3_device_t *dev, const char *cmd) {
// For now, there is no real device context:
(void) dev;
return CommandReceived(cmd);