basic/string-table: remove unnecessary brackets
This commit is contained in:
@@ -47,10 +47,8 @@ ssize_t string_table_lookup(const char * const *table, size_t len, const char *k
|
||||
s = strdup(name##_table[i]); \
|
||||
if (!s) \
|
||||
return -ENOMEM; \
|
||||
} else { \
|
||||
if (asprintf(&s, "%i", i) < 0) \
|
||||
return -ENOMEM; \
|
||||
} \
|
||||
} else if (asprintf(&s, "%i", i) < 0) \
|
||||
return -ENOMEM; \
|
||||
*str = s; \
|
||||
return 0; \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user