mirror of
https://github.com/systemd/systemd.git
synced 2026-07-16 20:40:56 +00:00
shared/install-printf: drop now-unused install_path_printf()
This commit is contained in:
committed by
Lennart Poettering
parent
46801e7647
commit
2cdd6bef9c
@@ -97,7 +97,7 @@ static int specifier_last_component(char specifier, const void *data, const char
|
||||
return 0;
|
||||
}
|
||||
|
||||
int install_full_printf_internal(const UnitFileInstallInfo *i, const char *format, size_t max_length, const char *root, char **ret) {
|
||||
int install_name_printf(const UnitFileInstallInfo *i, const char *format, const char *root, char **ret) {
|
||||
/* This is similar to unit_name_printf() */
|
||||
|
||||
const Specifier table[] = {
|
||||
@@ -117,5 +117,5 @@ int install_full_printf_internal(const UnitFileInstallInfo *i, const char *forma
|
||||
assert(format);
|
||||
assert(ret);
|
||||
|
||||
return specifier_printf(format, max_length, table, root, i, ret);
|
||||
return specifier_printf(format, UNIT_NAME_MAX, table, root, i, ret);
|
||||
}
|
||||
|
||||
@@ -4,11 +4,4 @@
|
||||
#include "install.h"
|
||||
#include "unit-name.h"
|
||||
|
||||
int install_full_printf_internal(const UnitFileInstallInfo *i, const char *format, size_t max_length, const char *root, char **ret);
|
||||
|
||||
static inline int install_name_printf(const UnitFileInstallInfo *i, const char *format, const char *root, char **ret) {
|
||||
return install_full_printf_internal(i, format, UNIT_NAME_MAX, root, ret);
|
||||
}
|
||||
static inline int install_path_printf(const UnitFileInstallInfo *i, const char *format, const char *root, char **ret) {
|
||||
return install_full_printf_internal(i, format, PATH_MAX-1, root, ret);
|
||||
}
|
||||
int install_name_printf(const UnitFileInstallInfo *i, const char *format, const char *root, char **ret);
|
||||
|
||||
Reference in New Issue
Block a user