chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Unifiy free() usage
[elogind.git]
/
src
/
basic
/
util.c
diff --git
a/src/basic/util.c
b/src/basic/util.c
index fcea9ceadaba2d3a5cf47a251d543550e58e56c2..7e0a913f51c88bc97247e14058984ea9cc0c5f7c 100644
(file)
--- a/
src/basic/util.c
+++ b/
src/basic/util.c
@@
-72,7
+72,7
@@
#include "config.h"
#include "macro.h"
#include "util.h"
#include "config.h"
#include "macro.h"
#include "util.h"
-#include "ioprio.h"
+
//
#include "ioprio.h"
// #include "missing.h"
// #include "log.h"
#include "strv.h"
// #include "missing.h"
// #include "log.h"
#include "strv.h"
@@
-3677,7
+3677,6
@@
int block_get_whole_disk(dev_t d, dev_t *ret) {
return -ENOENT;
}
return -ENOENT;
}
-#endif // 0
static const char *const ioprio_class_table[] = {
[IOPRIO_CLASS_NONE] = "none",
static const char *const ioprio_class_table[] = {
[IOPRIO_CLASS_NONE] = "none",
@@
-3687,6
+3686,7
@@
static const char *const ioprio_class_table[] = {
};
DEFINE_STRING_TABLE_LOOKUP_WITH_FALLBACK(ioprio_class, int, INT_MAX);
};
DEFINE_STRING_TABLE_LOOKUP_WITH_FALLBACK(ioprio_class, int, INT_MAX);
+#endif // 0
static const char *const sigchld_code_table[] = {
[CLD_EXITED] = "exited",
static const char *const sigchld_code_table[] = {
[CLD_EXITED] = "exited",
@@
-6671,7
+6671,6
@@
int rename_noreplace(int olddirfd, const char *oldpath, int newdirfd, const char
return 0;
}
return 0;
}
-#endif // 0
static char *strcpy_backslash_escaped(char *t, const char *s, const char *bad) {
assert(bad);
static char *strcpy_backslash_escaped(char *t, const char *s, const char *bad) {
assert(bad);
@@
-6732,6
+6731,7
@@
char *shell_maybe_quote(const char *s) {
return r;
}
return r;
}
+#endif // 0
int parse_mode(const char *s, mode_t *ret) {
char *x;
int parse_mode(const char *s, mode_t *ret) {
char *x;