summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/login/sysfs-show.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/sysfs-show.c b/src/login/sysfs-show.c
index 7c1adfaaca..f7d11ddc4c 100644
--- a/src/login/sysfs-show.c
+++ b/src/login/sysfs-show.c
@@ -164,7 +164,7 @@ int show_sysfs(const char *seat, const char *prefix, unsigned n_columns) {
e = udev_enumerate_new(udev);
if (!e)
- return ENOMEM;
+ return -ENOMEM;
if (!streq(seat, "seat0"))
r = udev_enumerate_add_match_tag(e, seat);