From b8abf46d0675053eec7e18e562b89860e9a130e8 Mon Sep 17 00:00:00 2001 From: internal Date: Tue, 25 Oct 2022 19:27:44 +0200 Subject: [PATCH] add consts --- apps/modconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/modconfig.c b/apps/modconfig.c index 9c8f2e3..05e8530 100644 --- a/apps/modconfig.c +++ b/apps/modconfig.c @@ -276,7 +276,7 @@ int mci_cmd(int dev, struct mci_command *cmd) memset(&msg, 0, sizeof(msg)); msg.link = 0; memcpy(&msg.cmd, cmd, sizeof(msg.cmd)); - //dump((uint8_t *) &msg.cmd, sizeof(msg.cmd)); + //dump((const uint8_t *) &msg.cmd, sizeof(msg.cmd)); ret = ioctl(dev, IOCTL_DDB_MCI_CMD, &msg); if (ret < 0) { dprintf(2, "mci_cmd error %d (%s)\n", errno, strerror(errno)); @@ -458,7 +458,7 @@ int mci_lic(int dev) printf("MATYPE1: %02x\n", res->bb_header.matype_1); printf("MATYPE2: %02x\n", res->bb_header.matype_2); } - dump(&res->license, sizeof(res->license)); + dump((const uint8_t *)&res->license, sizeof(res->license)); return ret; }