various: move const ptr indicator to return value

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2024-06-19 16:28:28 +02:00
parent cd2fb04960
commit bfd5a0687f
141 changed files with 272 additions and 272 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ int dlopen_cryptsetup(void);
int cryptsetup_get_keyslot_from_token(sd_json_variant *v);
static inline const char *mangle_none(const char *s) {
static inline const char* mangle_none(const char *s) {
/* A helper that turns cryptsetup/integritysetup/veritysetup "options" strings into NULL if they are effectively empty */
return isempty(s) || STR_IN_SET(s, "-", "none") ? NULL : s;
}