summaryrefslogtreecommitdiff
path: root/src/basic/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-09 15:25:15 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-09 15:25:15 +0200
commitd58e8bc973deee162aa143d537a7af9f3a06e19e (patch)
tree1f5551446be2b5654c2a3debf2e6fb9212cf1eab /src/basic/util.h
parentd7acddde057d25a4fb7835943ef3c73f262ba54f (diff)
parent87699fe313cf8919917f2ea422b8d10b3ae3b244 (diff)
Merge pull request #1217 from zonque/free-and-replace
locale: kill free_and_replace()
Diffstat (limited to 'src/basic/util.h')
-rw-r--r--src/basic/util.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/basic/util.h b/src/basic/util.h
index 0fafebd52d..8313675477 100644
--- a/src/basic/util.h
+++ b/src/basic/util.h
@@ -871,11 +871,6 @@ int extract_first_word(const char **p, char **ret, const char *separators, Extra
int extract_first_word_and_warn(const char **p, char **ret, const char *separators, ExtractFlags flags, const char *unit, const char *filename, unsigned line, const char *rvalue);
int extract_many_words(const char **p, const char *separators, ExtractFlags flags, ...) _sentinel_;
-static inline void free_and_replace(char **s, char *v) {
- free(*s);
- *s = v;
-}
-
int free_and_strdup(char **p, const char *s);
#define INOTIFY_EVENT_MAX (sizeof(struct inotify_event) + NAME_MAX + 1)