chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
silent a few more gcc warnings
[elogind.git]
/
src
/
core
/
dbus-cgroup.c
diff --git
a/src/core/dbus-cgroup.c
b/src/core/dbus-cgroup.c
index 5654b8c7119e4279c99fe07e881d17bf32766d40..f198357637579a5fc9820e352d01afd80555f1a0 100644
(file)
--- a/
src/core/dbus-cgroup.c
+++ b/
src/core/dbus-cgroup.c
@@
-238,7
+238,6
@@
int bus_cgroup_set_property(
DBusMessageIter sub2;
const char *path;
uint64_t u64;
DBusMessageIter sub2;
const char *path;
uint64_t u64;
- CGroupBlockIODeviceBandwidth *a;
dbus_message_iter_recurse(&sub, &sub2);
if (bus_iter_get_basic_and_next(&sub2, DBUS_TYPE_STRING, &path, true) < 0 ||
dbus_message_iter_recurse(&sub, &sub2);
if (bus_iter_get_basic_and_next(&sub2, DBUS_TYPE_STRING, &path, true) < 0 ||
@@
-246,6
+245,7
@@
int bus_cgroup_set_property(
return -EINVAL;
if (mode != UNIT_CHECK) {
return -EINVAL;
if (mode != UNIT_CHECK) {
+ CGroupBlockIODeviceBandwidth *a = NULL;
CGroupBlockIODeviceBandwidth *b;
bool exist = false;
CGroupBlockIODeviceBandwidth *b;
bool exist = false;
@@
-329,7
+329,6
@@
int bus_cgroup_set_property(
const char *path;
uint64_t u64;
unsigned long ul;
const char *path;
uint64_t u64;
unsigned long ul;
- CGroupBlockIODeviceWeight *a;
dbus_message_iter_recurse(&sub, &sub2);
dbus_message_iter_recurse(&sub, &sub2);
@@
-342,6
+341,7
@@
int bus_cgroup_set_property(
return -EINVAL;
if (mode != UNIT_CHECK) {
return -EINVAL;
if (mode != UNIT_CHECK) {
+ CGroupBlockIODeviceWeight *a = NULL;
CGroupBlockIODeviceWeight *b;
bool exist = false;
CGroupBlockIODeviceWeight *b;
bool exist = false;
@@
-465,7
+465,6
@@
int bus_cgroup_set_property(
while (dbus_message_iter_get_arg_type(&sub) == DBUS_TYPE_STRUCT) {
DBusMessageIter sub2;
const char *path, *rwm;
while (dbus_message_iter_get_arg_type(&sub) == DBUS_TYPE_STRUCT) {
DBusMessageIter sub2;
const char *path, *rwm;
- CGroupDeviceAllow *a;
dbus_message_iter_recurse(&sub, &sub2);
dbus_message_iter_recurse(&sub, &sub2);
@@
-487,6
+486,7
@@
int bus_cgroup_set_property(
}
if (mode != UNIT_CHECK) {
}
if (mode != UNIT_CHECK) {
+ CGroupDeviceAllow *a = NULL;
CGroupDeviceAllow *b;
bool exist = false;
CGroupDeviceAllow *b;
bool exist = false;