[systemd-commits] 2 commits - src/login src/shared

Thomas H.P. Andersen phomes at kemper.freedesktop.org
Sat Nov 30 13:00:30 PST 2013


 src/login/sysfs-show.c |    2 +-
 src/shared/macro.h     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a051da35ce96923e31a532c86a530bfd40d5dc76
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date:   Sat Nov 30 21:59:40 2013 +0100

    sysfs-show.c: return negative error
    
    introduced in 1ca208fb4f93e5869704af1812cbff7130a2fc03

diff --git a/src/login/sysfs-show.c b/src/login/sysfs-show.c
index 7c1adfa..f7d11dd 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);

commit e5f476db05ed520e6454557eaba7dc32c5d5d3a4
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date:   Sat Nov 30 21:55:35 2013 +0100

    macro.h: fix typo in comment

diff --git a/src/shared/macro.h b/src/shared/macro.h
index 6caecab..9f5f51c 100644
--- a/src/shared/macro.h
+++ b/src/shared/macro.h
@@ -267,7 +267,7 @@ do {                                                                    \
         }                                                               \
 } while(false)
 
- /* Because statfs.t_type can be int on some architecures, we have to cast
+ /* Because statfs.t_type can be int on some architectures, we have to cast
   * the const magic to the type, otherwise the compiler warns about
   * signed/unsigned comparison, because the magic can be 32 bit unsigned.
  */



More information about the systemd-commits mailing list