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 (parent:
f21326e
)
remove unused variables
author
Thomas Hindoe Paaboel Andersen
<phomes@gmail.com>
Mon, 18 Nov 2013 21:57:56 +0000
(22:57 +0100)
committer
Thomas Hindoe Paaboel Andersen
<phomes@gmail.com>
Mon, 18 Nov 2013 22:04:16 +0000
(23:04 +0100)
src/activate/activate.c
patch
|
blob
|
history
src/locale/localectl.c
patch
|
blob
|
history
src/login/pam-module.c
patch
|
blob
|
history
src/systemctl/systemctl.c
patch
|
blob
|
history
src/timedate/timedatectl.c
patch
|
blob
|
history
diff --git
a/src/activate/activate.c
b/src/activate/activate.c
index 2639d1cd53b4a08b9e989696d19fad1aa2975d28..5263969fcf572c1e1829fc59da8f87c849443a89 100644
(file)
--- a/
src/activate/activate.c
+++ b/
src/activate/activate.c
@@
-58,7
+58,6
@@
static int add_epoll(int epoll_fd, int fd) {
}
static int make_socket_fd(const char* address, int flags) {
}
static int make_socket_fd(const char* address, int flags) {
- _cleanup_free_ char *p = NULL;
SocketAddress a;
int fd, r;
SocketAddress a;
int fd, r;
diff --git
a/src/locale/localectl.c
b/src/locale/localectl.c
index d8dd66a197feeac6162b597601f9e043444a78df..f7fea48ffeae642b5eba95688c2f2b19a5ea0e7b 100644
(file)
--- a/
src/locale/localectl.c
+++ b/
src/locale/localectl.c
@@
-139,7
+139,6
@@
fail:
static int set_locale(sd_bus *bus, char **args, unsigned n) {
_cleanup_bus_message_unref_ sd_bus_message *m = NULL;
static int set_locale(sd_bus *bus, char **args, unsigned n) {
_cleanup_bus_message_unref_ sd_bus_message *m = NULL;
- _cleanup_bus_message_unref_ sd_bus_message *reply = NULL;
_cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
int r;
_cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
int r;
@@
-365,7
+364,6
@@
static int list_locales(sd_bus *bus, char **args, unsigned n) {
}
static int set_vconsole_keymap(sd_bus *bus, char **args, unsigned n) {
}
static int set_vconsole_keymap(sd_bus *bus, char **args, unsigned n) {
- _cleanup_bus_message_unref_ sd_bus_message *reply = NULL;
_cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
const char *map, *toggle_map;
int r;
_cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
const char *map, *toggle_map;
int r;
@@
-472,7
+470,6
@@
static int list_vconsole_keymaps(sd_bus *bus, char **args, unsigned n) {
}
static int set_x11_keymap(sd_bus *bus, char **args, unsigned n) {
}
static int set_x11_keymap(sd_bus *bus, char **args, unsigned n) {
- _cleanup_bus_message_unref_ sd_bus_message *reply = NULL;
_cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
const char *layout, *model, *variant, *options;
int r;
_cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
const char *layout, *model, *variant, *options;
int r;
diff --git
a/src/login/pam-module.c
b/src/login/pam-module.c
index 1975d8038dd1eea3cb99ae32de9c97783d471f79..c04622c1c2abfc8e80ce098f5c96bd2ed89b566b 100644
(file)
--- a/
src/login/pam-module.c
+++ b/
src/login/pam-module.c
@@
-440,7
+440,6
@@
_public_ PAM_EXTERN int pam_sm_close_session(
int argc, const char **argv) {
_cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
int argc, const char **argv) {
_cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
- _cleanup_bus_message_unref_ sd_bus_message *reply = NULL;
_cleanup_bus_unref_ sd_bus *bus = NULL;
const void *p = NULL, *existing = NULL;
const char *id;
_cleanup_bus_unref_ sd_bus *bus = NULL;
const void *p = NULL, *existing = NULL;
const char *id;
diff --git
a/src/systemctl/systemctl.c
b/src/systemctl/systemctl.c
index 737cd67d6814b12f1706e009bbe58c0f3536b9ae..2362f43a2fcfb08c9cbef1bc90bbd69a1d036636 100644
(file)
--- a/
src/systemctl/systemctl.c
+++ b/
src/systemctl/systemctl.c
@@
-750,7
+750,6
@@
static int get_next_elapse(
dual_timestamp *next) {
_cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
dual_timestamp *next) {
_cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
- _cleanup_bus_message_unref_ sd_bus_message *reply = NULL;
dual_timestamp t;
int r;
dual_timestamp t;
int r;
@@
-2127,7
+2126,6
@@
static int reboot_with_logind(sd_bus *bus, enum action a) {
static int check_inhibitors(sd_bus *bus, enum action a) {
#ifdef HAVE_LOGIND
static int check_inhibitors(sd_bus *bus, enum action a) {
#ifdef HAVE_LOGIND
- _cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
_cleanup_bus_message_unref_ sd_bus_message *reply = NULL;
_cleanup_strv_free_ char **sessions = NULL;
const char *what, *who, *why, *mode;
_cleanup_bus_message_unref_ sd_bus_message *reply = NULL;
_cleanup_strv_free_ char **sessions = NULL;
const char *what, *who, *why, *mode;
@@
-3542,7
+3540,6
@@
static int show_all(
bool *new_line,
bool *ellipsized) {
bool *new_line,
bool *ellipsized) {
- _cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
_cleanup_bus_message_unref_ sd_bus_message *reply = NULL;
_cleanup_free_ UnitInfo *unit_infos = NULL;
const UnitInfo *u;
_cleanup_bus_message_unref_ sd_bus_message *reply = NULL;
_cleanup_free_ UnitInfo *unit_infos = NULL;
const UnitInfo *u;
diff --git
a/src/timedate/timedatectl.c
b/src/timedate/timedatectl.c
index 2267733d9126a242d06b3ac34ccd1e2d142127c9..6a36af04f7f4c7cf413954b8a84809abe09da84f 100644
(file)
--- a/
src/timedate/timedatectl.c
+++ b/
src/timedate/timedatectl.c
@@
-194,7
+194,6
@@
static void print_status_info(const StatusInfo *i) {
}
static int show_status(sd_bus *bus, char **args, unsigned n) {
}
static int show_status(sd_bus *bus, char **args, unsigned n) {
- _cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
StatusInfo info = {};
static const struct bus_properties_map map[] = {
{ "Timezone", "s", NULL, offsetof(StatusInfo, timezone) },
StatusInfo info = {};
static const struct bus_properties_map map[] = {
{ "Timezone", "s", NULL, offsetof(StatusInfo, timezone) },