summaryrefslogtreecommitdiff
path: root/src/locale
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-12-19 13:11:05 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-12-19 15:00:59 +0100
commita5937dcf3902ecb90777f259f6e006292eb54251 (patch)
treef4a618eace7159c7ef97084622e28186a1cd4781 /src/locale
parent254d1313ae5a69c08c9b93032aaaf3d6083cfc07 (diff)
downloadsystemd-a5937dcf3902ecb90777f259f6e006292eb54251.tar.gz
tree-wide: change initialization to use EBADF instead of EBADFD
Those fds never were, so it's not fair to say that they are in "bad state". Let's use the shorter and more direct errno.
Diffstat (limited to 'src/locale')
-rw-r--r--src/locale/localed-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/locale/localed-util.c b/src/locale/localed-util.c
index cace820bdd..ddca11d908 100644
--- a/src/locale/localed-util.c
+++ b/src/locale/localed-util.c
@@ -93,7 +93,7 @@ int locale_read_data(Context *c, sd_bus_message *m) {
}
int vconsole_read_data(Context *c, sd_bus_message *m) {
- _cleanup_close_ int fd = -EBADFD;
+ _cleanup_close_ int fd = -EBADF;
struct stat st;
/* Do not try to re-read the file within single bus operation. */
@@ -130,7 +130,7 @@ int vconsole_read_data(Context *c, sd_bus_message *m) {
}
int x11_read_data(Context *c, sd_bus_message *m) {
- _cleanup_close_ int fd = -EBADFD, fd_ro = -EBADFD;
+ _cleanup_close_ int fd = -EBADF, fd_ro = -EBADF;
_cleanup_fclose_ FILE *f = NULL;
bool in_section = false;
struct stat st;