summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/irecovery.c2
-rw-r--r--src/libirecovery.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/irecovery.c b/src/irecovery.c
index c4a698d..7d2302e 100644
--- a/src/irecovery.c
+++ b/src/irecovery.c
@@ -165,7 +165,7 @@ int received_cb(irecv_client_t client, const irecv_event_t* event) {
if (event->type == IRECV_RECEIVED) {
int i = 0;
int size = event->size;
- char* data = event->data;
+ const char* data = event->data;
for (i = 0; i < size; i++) {
printf("%c", data[i]);
}
diff --git a/src/libirecovery.c b/src/libirecovery.c
index 63072c6..f2c8798 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -835,7 +835,7 @@ static irecv_error_t irecv_send_command_raw(irecv_client_t client, const char* c
return IRECV_E_SUCCESS;
}
-irecv_error_t irecv_send_command(irecv_client_t client, char* command) {
+irecv_error_t irecv_send_command(irecv_client_t client, const char* command) {
irecv_error_t error = 0;
if (check_context(client) != IRECV_E_SUCCESS) return IRECV_E_NO_DEVICE;