[PATCH V2] tplink-safeloader: Patch to handle partitions with alternate names.
Ole Kristian Lona
ole.kristian at lona.name
Thu May 5 07:33:30 PDT 2022
I removed those "const" qualifiers to get rid of the error message about "assignments discards 'const' qualifiers"... If I in addition make flash_partition_entry a const, the file won't compile any more, since we are adjusting the value of flash_partition_entry "info->partitions" in line 3360.
I tried a few different variants of using "const", but could not find a combination that actually works, and yields no error message.
Best regards,
Ole Kristian
-----Original Message-----
From: Rafał Miłecki <zajec5 at gmail.com>
Sent: torsdag 5. mai 2022 16:12
To: oklo at oklona.net; openwrt-devel at lists.openwrt.org
Subject: Re: [PATCH V2] tplink-safeloader: Patch to handle partitions with alternate names.
On 5.05.2022 10:31, Ole Kristian Lona via openwrt-devel wrote:
> +/** Flash partition names table entry */ > +struct factory_partition_names {
> + char *partition_table;
> + char *soft_ver;
> + char *os_image;
> + char *file_system;
> + char *extra_para;
> +};
Use "const char *" for each.
You'll also need to adjust "struct flash_partition_entry" (add const there too).
More information about the openwrt-devel
mailing list