]> git.proxmox.com Git - systemd.git/blobdiff - src/basic/string-table.h
New upstream version 240
[systemd.git] / src / basic / string-table.h
index 9bd7879355da38845c828ac9f2807c61b41d8e69..228c12ad00ab736bcf1dccfa600ffb851ea8e314 100644 (file)
@@ -58,7 +58,7 @@ ssize_t string_table_lookup(const char * const *table, size_t len, const char *k
         }
 
 #define _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING_FALLBACK(name,type,max,scope) \
-        type name##_from_string(const char *s) {                        \
+        scope type name##_from_string(const char *s) {                  \
                 type i;                                                 \
                 unsigned u = 0;                                         \
                 if (!s)                                                 \