[systemd-commits] 2 commits - src/systemctl src/udev

Lennart Poettering lennart at kemper.freedesktop.org
Wed May 6 09:27:53 PDT 2015


 src/systemctl/systemctl.c   |    2 +-
 src/udev/net/ethtool-util.c |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 61087906e099eb462a0fc123afca5687795f0fd4
Author: Susant Sahani <susant at redhat.com>
Date:   Wed May 6 11:45:13 2015 +0530

    udev: fix coding style

diff --git a/src/udev/net/ethtool-util.c b/src/udev/net/ethtool-util.c
index ec67126..927b8ab 100644
--- a/src/udev/net/ethtool-util.c
+++ b/src/udev/net/ethtool-util.c
@@ -93,8 +93,7 @@ int ethtool_get_driver(int *fd, const char *ifname, char **ret) {
         return 0;
 }
 
-int ethtool_set_speed(int *fd, const char *ifname, unsigned int speed, Duplex duplex)
-{
+int ethtool_set_speed(int *fd, const char *ifname, unsigned int speed, Duplex duplex) {
         struct ethtool_cmd ecmd = {
                 .cmd = ETHTOOL_GSET
         };

commit cafbecf31ca615feaf5e5392b62c7511081abefd
Author: Daniel Buch <boogiewasthere at gmail.com>
Date:   Wed May 6 10:28:08 2015 +0200

    systemctl: null-initialize pointer with cleanup attribute

diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 4f36ba8..4c45bfc 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -7289,7 +7289,7 @@ static int halt_main(sd_bus *bus) {
         if (arg_when > 0) {
                 _cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
                 _cleanup_bus_close_unref_ sd_bus *b = NULL;
-                _cleanup_free_ char *m;
+                _cleanup_free_ char *m = NULL;
 
                 if (avoid_bus()) {
                         log_error("Unable to perform operation without bus connection.");



More information about the systemd-commits mailing list