summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/lldp-network.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-19 00:50:34 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-22 16:31:10 +0200
commit8c721f2bcb134de228ec98f5e27ce89d79a31b55 (patch)
treed07f24f87ecac2608ee05bc1d90bcf3664c7273f /src/libsystemd-network/lldp-network.c
parent08edf879ed3c98e5ae889dceb8b761929f407054 (diff)
util: clean-ups to enum parsers
Never log when we fail due to OOM when translating enums, let the caller do that. Translating basic types like enums should be something where the caller logs, not the translatior functions. Return -1 when NULL is passed to all enum parser functions. The non-fallback versions of the enum translator calls already handle NULL as failure, instead of hitting an assert, and we should do this here, too.
Diffstat (limited to 'src/libsystemd-network/lldp-network.c')
0 files changed, 0 insertions, 0 deletions