chiark / gitweb /
sysfs-show.c: return negative error
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Sat, 30 Nov 2013 20:59:40 +0000 (21:59 +0100)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Sat, 30 Nov 2013 20:59:40 +0000 (21:59 +0100)
introduced in 1ca208fb4f93e5869704af1812cbff7130a2fc03

src/login/sysfs-show.c

index 7c1adfa..f7d11dd 100644 (file)
@@ -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);