volatile-mode: use the usual string table macros for implementing volatile_mode_from_...
authorLennart Poettering <lennart@poettering.net>
Tue, 22 May 2018 10:09:59 +0000 (12:09 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 22 May 2018 11:14:18 +0000 (13:14 +0200)
commit081a0c7256136e949a4a27fa965d40368cb8e5ce
tree7685487928b11f496d8f9a5954a23bd37b205809
parentabdf29f50d9b0ee55a24ea02ff827f8d4cdf00bd
volatile-mode: use the usual string table macros for implementing volatile_mode_from_string()

Let's shorten our code a bit, and also add the matching _to_string()
call.
src/shared/volatile-util.c
src/shared/volatile-util.h