diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-01 00:29:17 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-01 00:29:17 +0200 |
commit | 4fd5948e74b776b6d68ba55f558da5f354179e52 (patch) | |
tree | 0bb54d1f5ac17f1de19e71357bd39e595732190c /src/util.h | |
parent | 6398320759ce4ed84922bb28f715d3c6c66166c4 (diff) |
socket: make various socket/pipe options configurable
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h index 91e0359e0c..eda8e5c406 100644 --- a/src/util.h +++ b/src/util.h @@ -226,7 +226,8 @@ unsigned long long random_ull(void); unsigned u = 0; \ assert(s); \ for (i = 0; i < (type)ELEMENTSOF(name##_table); i++) \ - if (streq(name##_table[i], s)) \ + if (name##_table[i] && \ + streq(name##_table[i], s)) \ return i; \ if (safe_atou(s, &u) >= 0 && \ u < ELEMENTSOF(name##_table)) \ @@ -301,4 +302,7 @@ int sched_policy_from_string(const char *s); const char *rlimit_to_string(int i); int rlimit_from_string(const char *s); +const char *ip_tos_to_string(int i); +int ip_tos_from_string(const char *s); + #endif |