import: only define the _to_string() enum mapping function, thus making gcc shut up

This commit is contained in:
Lennart Poettering
2015-01-22 17:50:50 +01:00
parent aa9bd4992f
commit b9a5f8588f
2 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ static const char* const transfer_type_table[_TRANSFER_TYPE_MAX] = {
[TRANSFER_DKR] = "dkr",
};
DEFINE_PRIVATE_STRING_TABLE_LOOKUP(transfer_type, TransferType);
DEFINE_PRIVATE_STRING_TABLE_LOOKUP_TO_STRING(transfer_type, TransferType);
static Transfer *transfer_unref(Transfer *t) {
if (!t)