(a == '-' && b == '_');
}
+#if 0 /// UNNEEDED by elogind
char *proc_cmdline_key_startswith(const char *s, const char *prefix) {
assert(s);
return (char*) s;
}
+#endif // 0
bool proc_cmdline_key_streq(const char *x, const char *y) {
assert(x);
return true;
}
+#if 0 /// UNNEEDED by elogind
int proc_cmdline_get_key(const char *key, unsigned flags, char **value) {
_cleanup_free_ char *line = NULL, *ret = NULL;
bool found = false;
* a) The "value" parameter is used. In this case a parameter beginning with the "key" string followed by "="
* is searched, and the value following this is returned in "value".
*
- * b) as above, but the PROC_CMDLINE_VALUE_OPTIONAL flag is set. In this case if the the key is found as a
+ * b) as above, but the PROC_CMDLINE_VALUE_OPTIONAL flag is set. In this case if the key is found as a
* separate word (i.e. not followed by "=" but instead by whitespace or the end of the command line), then
* this is also accepted, and "value" is returned as NULL.
*
* c) The "value" parameter is NULL. In this case a search for the exact "key" parameter is performed.
*
- * In all three cases, > 0 is returned if the key is found, 0 if not.*/
+ * In all three cases, > 0 is returned if the key is found, 0 if not. */
if (isempty(key))
return -EINVAL;
return 1;
}
-#if 0 /// UNNEEDED by elogind
int shall_restore_state(void) {
bool ret;
int r;