1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 18:55:40 +03:00

remove unused variables

This commit is contained in:
Thomas Hindoe Paaboel Andersen 2015-02-02 22:56:44 +01:00
parent 73cb775495
commit fed6df828d
5 changed files with 1 additions and 9 deletions

View File

@ -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); return synthetic_reply_method_return(m, "u", BUS_NAME_RELEASED);
} else if (sd_bus_message_is_method_call(m, "org.freedesktop.DBus", "ReloadConfig")) { } 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, "")) 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")); return synthetic_reply_method_error(m, &SD_BUS_ERROR_MAKE_CONST(SD_BUS_ERROR_INVALID_ARGS, "Invalid parameters"));

View File

@ -216,7 +216,6 @@ static int property_get_preparing(
static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_handle_action, handle_action, HandleAction); 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 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; _cleanup_free_ char *p = NULL;
Manager *m = userdata; Manager *m = userdata;
const char *name; 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; const char *name, *swho;
Manager *m = userdata; Manager *m = userdata;
Session *session; 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; Manager *m = userdata;
const char *name; const char *name;
Session *session; Session *session;

View File

@ -1995,7 +1995,6 @@ static int pull_raw(int argc, char *argv[], void *userdata) {
static int pull_dkr(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; _cleanup_bus_message_unref_ sd_bus_message *m = NULL;
_cleanup_free_ char *l = NULL, *ll = NULL;
const char *local, *remote, *tag; const char *local, *remote, *tag;
sd_bus *bus = userdata; sd_bus *bus = userdata;
int r; int r;

View File

@ -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; char *np;
/* If the specified path is a mount point we /* If the specified path is a mount point we

View File

@ -630,7 +630,7 @@ static int get_xattrs_from_arg(Item *i) {
while ((r = unquote_first_word(&p, &xattr, false)) > 0) { while ((r = unquote_first_word(&p, &xattr, false)) > 0) {
_cleanup_free_ char *tmp = NULL, *name = NULL, _cleanup_free_ char *tmp = NULL, *name = NULL,
*value = NULL, *value2 = NULL, *_xattr = xattr; *value = NULL, *value2 = NULL;
r = split_pair(xattr, "=", &name, &value); r = split_pair(xattr, "=", &name, &value);
if (r < 0) { 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) { static int get_acls_from_arg(Item *item) {
#ifdef HAVE_ACL #ifdef HAVE_ACL
int r; int r;
_cleanup_(acl_freep) acl_t a = NULL, d = NULL;
assert(item); assert(item);