diff options
author | Simon Ser <contact@emersion.fr> | 2020-08-27 15:56:12 +0000 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-08-28 01:21:57 +0200 |
commit | a254fe3692e63f92aa710310ba8113373180448c (patch) | |
tree | e241010ffbfd6f8c3aefd31b270ef4c6bd8b1d59 /seatd | |
parent | ab4b961492ef91a9e2b456b4e2812eaad9994c3a (diff) | |
download | seatd-a254fe3692e63f92aa710310ba8113373180448c.tar.xz |
Rename enum log_level to libseat_log_level
This is preparatory work for exposing a public function to set libseat's
log handler.
Diffstat (limited to 'seatd')
-rw-r--r-- | seatd/seatd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/seatd/seatd.c b/seatd/seatd.c index ada6e75..71d6b2f 100644 --- a/seatd/seatd.c +++ b/seatd/seatd.c @@ -54,14 +54,14 @@ static int open_socket(char *path, int uid, int gid) { int main(int argc, char *argv[]) { char *loglevel = getenv("SEATD_LOGLEVEL"); - enum log_level level = LOGLEVEL_ERROR; + enum libseat_log_level level = LIBSEAT_LOG_LEVEL_ERROR; if (loglevel != NULL) { if (strcmp(loglevel, "silent") == 0) { - level = LOGLEVEL_SILENT; + level = LIBSEAT_LOG_LEVEL_SILENT; } else if (strcmp(loglevel, "info") == 0) { - level = LOGLEVEL_INFO; + level = LIBSEAT_LOG_LEVEL_INFO; } else if (strcmp(loglevel, "debug") == 0) { - level = LOGLEVEL_DEBUG; + level = LIBSEAT_LOG_LEVEL_DEBUG; } } log_init(level); |