const for idx is useless as the value is copied anyway, so drop the
const. AFAIK this doesn't change ABI.
* partitions probing
*/
extern int blkid_known_pttype(const char *pttype);
-extern int blkid_partitions_get_name(const size_t idx, const char **name);
+extern int blkid_partitions_get_name(size_t idx, const char **name);
extern int blkid_probe_enable_partitions(blkid_probe pr, int enable)
__ul_attribute__((nonnull));
*
* Returns: -1 if @idx is out of range, or 0 on success.
*/
-int blkid_partitions_get_name(const size_t idx, const char **name)
+int blkid_partitions_get_name(size_t idx, const char **name)
{
if (idx < ARRAY_SIZE(idinfos)) {
*name = idinfos[idx]->name;