chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
73cb775
)
remove unused variables
author
Thomas Hindoe Paaboel Andersen
<phomes@gmail.com>
Mon, 2 Feb 2015 21:56:44 +0000
(22:56 +0100)
committer
Thomas Hindoe Paaboel Andersen
<phomes@gmail.com>
Mon, 2 Feb 2015 21:58:06 +0000
(22:58 +0100)
src/bus-proxyd/driver.c
patch
|
blob
|
history
src/login/logind-dbus.c
patch
|
blob
|
history
src/machine/machinectl.c
patch
|
blob
|
history
src/nspawn/nspawn.c
patch
|
blob
|
history
src/tmpfiles/tmpfiles.c
patch
|
blob
|
history
diff --git
a/src/bus-proxyd/driver.c
b/src/bus-proxyd/driver.c
index 5287ff140b5aff894c51bd22501b5f90d9b3b038..6a72d181fe833398848a4f156bdd14b2f175cedd 100644
(file)
--- a/
src/bus-proxyd/driver.c
+++ b/
src/bus-proxyd/driver.c
@@
-434,8
+434,6
@@
int bus_proxy_process_driver(sd_bus *a, sd_bus *b, sd_bus_message *m, SharedPoli
return synthetic_reply_method_return(m, "u", BUS_NAME_RELEASED);
} else if (sd_bus_message_is_method_call(m, "org.freedesktop.DBus", "ReloadConfig")) {
return synthetic_reply_method_return(m, "u", BUS_NAME_RELEASED);
} else if (sd_bus_message_is_method_call(m, "org.freedesktop.DBus", "ReloadConfig")) {
- _cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
-
if (!sd_bus_message_has_signature(m, ""))
return synthetic_reply_method_error(m, &SD_BUS_ERROR_MAKE_CONST(SD_BUS_ERROR_INVALID_ARGS, "Invalid parameters"));
if (!sd_bus_message_has_signature(m, ""))
return synthetic_reply_method_error(m, &SD_BUS_ERROR_MAKE_CONST(SD_BUS_ERROR_INVALID_ARGS, "Invalid parameters"));
diff --git
a/src/login/logind-dbus.c
b/src/login/logind-dbus.c
index f2f91d5ded05fc1a5705b14529987ad7f3023330..c7c1559d50c98be24d4ce72f2fbf42e92092f247 100644
(file)
--- a/
src/login/logind-dbus.c
+++ b/
src/login/logind-dbus.c
@@
-216,7
+216,6
@@
static int property_get_preparing(
static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_handle_action, handle_action, HandleAction);
static int method_get_session(sd_bus *bus, sd_bus_message *message, void *userdata, sd_bus_error *error) {
static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_handle_action, handle_action, HandleAction);
static int method_get_session(sd_bus *bus, sd_bus_message *message, void *userdata, sd_bus_error *error) {
- _cleanup_bus_creds_unref_ sd_bus_creds *creds = NULL;
_cleanup_free_ char *p = NULL;
Manager *m = userdata;
const char *name;
_cleanup_free_ char *p = NULL;
Manager *m = userdata;
const char *name;
@@
-939,7
+938,6
@@
static int method_lock_sessions(sd_bus *bus, sd_bus_message *message, void *user
}
static int method_kill_session(sd_bus *bus, sd_bus_message *message, void *userdata, sd_bus_error *error) {
}
static int method_kill_session(sd_bus *bus, sd_bus_message *message, void *userdata, sd_bus_error *error) {
- _cleanup_bus_creds_unref_ sd_bus_creds *creds = NULL;
const char *name, *swho;
Manager *m = userdata;
Session *session;
const char *name, *swho;
Manager *m = userdata;
Session *session;
@@
-1007,7
+1005,6
@@
static int method_kill_user(sd_bus *bus, sd_bus_message *message, void *userdata
}
static int method_terminate_session(sd_bus *bus, sd_bus_message *message, void *userdata, sd_bus_error *error) {
}
static int method_terminate_session(sd_bus *bus, sd_bus_message *message, void *userdata, sd_bus_error *error) {
- _cleanup_bus_creds_unref_ sd_bus_creds *creds = NULL;
Manager *m = userdata;
const char *name;
Session *session;
Manager *m = userdata;
const char *name;
Session *session;
diff --git
a/src/machine/machinectl.c
b/src/machine/machinectl.c
index 071b2b9ebf59cd5a6bae5923e62cfa7424dff3e0..06ae8bc0a8a6115131b1a4fe5a412b873ff77330 100644
(file)
--- a/
src/machine/machinectl.c
+++ b/
src/machine/machinectl.c
@@
-1995,7
+1995,6
@@
static int pull_raw(int argc, char *argv[], void *userdata) {
static int pull_dkr(int argc, char *argv[], void *userdata) {
_cleanup_bus_message_unref_ sd_bus_message *m = NULL;
static int pull_dkr(int argc, char *argv[], void *userdata) {
_cleanup_bus_message_unref_ sd_bus_message *m = NULL;
- _cleanup_free_ char *l = NULL, *ll = NULL;
const char *local, *remote, *tag;
sd_bus *bus = userdata;
int r;
const char *local, *remote, *tag;
sd_bus *bus = userdata;
int r;
diff --git
a/src/nspawn/nspawn.c
b/src/nspawn/nspawn.c
index 2beb810e5def98b949e9305418d82878fdf8f96c..226c4415bb63c694d9679fd1a0d4de46263fcfa3 100644
(file)
--- a/
src/nspawn/nspawn.c
+++ b/
src/nspawn/nspawn.c
@@
-3610,7
+3610,6
@@
int main(int argc, char *argv[]) {
}
if (arg_ephemeral) {
}
if (arg_ephemeral) {
- _cleanup_release_lock_file_ LockFile original_lock = LOCK_FILE_INIT;
char *np;
/* If the specified path is a mount point we
char *np;
/* If the specified path is a mount point we
diff --git
a/src/tmpfiles/tmpfiles.c
b/src/tmpfiles/tmpfiles.c
index 930b9a662a20ec90175f0e2c956b445b94392457..443851a8aa8b48975f3c30cd1bd46e747288dfc1 100644
(file)
--- a/
src/tmpfiles/tmpfiles.c
+++ b/
src/tmpfiles/tmpfiles.c
@@
-630,7
+630,7
@@
static int get_xattrs_from_arg(Item *i) {
while ((r = unquote_first_word(&p, &xattr, false)) > 0) {
_cleanup_free_ char *tmp = NULL, *name = NULL,
while ((r = unquote_first_word(&p, &xattr, false)) > 0) {
_cleanup_free_ char *tmp = NULL, *name = NULL,
- *value = NULL, *value2 = NULL
, *_xattr = xattr
;
+ *value = NULL, *value2 = NULL;
r = split_pair(xattr, "=", &name, &value);
if (r < 0) {
r = split_pair(xattr, "=", &name, &value);
if (r < 0) {
@@
-682,7
+682,6
@@
static int path_set_xattrs(Item *i, const char *path) {
static int get_acls_from_arg(Item *item) {
#ifdef HAVE_ACL
int r;
static int get_acls_from_arg(Item *item) {
#ifdef HAVE_ACL
int r;
- _cleanup_(acl_freep) acl_t a = NULL, d = NULL;
assert(item);
assert(item);