various: move const ptr indicator to return value
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user