[systemd-commits] 2 commits - src/core src/libudev
Thomas H.P. Andersen
phomes at kemper.freedesktop.org
Sat Apr 4 23:46:05 PDT 2015
src/core/service.h | 2 --
src/libudev/libudev-util.c | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 4835f5639a0ec0b8df0b57abdbc2fb07dbe1507c
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sun Apr 5 08:30:49 2015 +0200
libudev-util: check length before accesing the array
diff --git a/src/libudev/libudev-util.c b/src/libudev/libudev-util.c
index 0f8f634..f465627 100644
--- a/src/libudev/libudev-util.c
+++ b/src/libudev/libudev-util.c
@@ -216,7 +216,7 @@ int util_replace_whitespace(const char *str, char *to, size_t len)
/* strip leading whitespace */
i = 0;
- while (isspace(str[i]) && (i < len))
+ while ((i < len) && isspace(str[i]))
i++;
j = 0;
commit afbbf1369b30e83f7b293d649bda6401e19115e1
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sun Apr 5 08:28:27 2015 +0200
service: remove unnecessary forward declare
diff --git a/src/core/service.h b/src/core/service.h
index 23124e8..7da0a93 100644
--- a/src/core/service.h
+++ b/src/core/service.h
@@ -216,8 +216,6 @@ struct Service {
extern const UnitVTable service_vtable;
-struct Socket;
-
int service_set_socket_fd(Service *s, int fd, struct Socket *socket, bool selinux_context_net);
const char* service_state_to_string(ServiceState i) _const_;
More information about the systemd-commits
mailing list