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:
831dede
)
Remove six unused variables and add annotation
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 17 Sep 2013 22:30:47 +0000
(17:30 -0500)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 17 Sep 2013 23:08:51 +0000
(19:08 -0400)
clang FTW!
src/fstab-generator/fstab-generator.c
patch
|
blob
|
history
src/journal/test-journal-interleaving.c
patch
|
blob
|
history
src/login/logind-dbus.c
patch
|
blob
|
history
src/login/logind-session.c
patch
|
blob
|
history
src/machine/machined-dbus.c
patch
|
blob
|
history
diff --git
a/src/fstab-generator/fstab-generator.c
b/src/fstab-generator/fstab-generator.c
index b73dfa4899ee65d137915c8468cbc42cd83dd744..9efccb983de752d14f1b310829dce33341524941 100644
(file)
--- a/
src/fstab-generator/fstab-generator.c
+++ b/
src/fstab-generator/fstab-generator.c
@@
-64,7
+64,7
@@
static int mount_find_pri(struct mntent *me, int *ret) {
}
static int add_swap(const char *what, struct mntent *me) {
}
static int add_swap(const char *what, struct mntent *me) {
- _cleanup_free_ char *name = NULL, *unit = NULL, *lnk = NULL
, *device = NULL
;
+ _cleanup_free_ char *name = NULL, *unit = NULL, *lnk = NULL;
_cleanup_fclose_ FILE *f = NULL;
bool noauto;
int r, pri = -1;
_cleanup_fclose_ FILE *f = NULL;
bool noauto;
int r, pri = -1;
@@
-159,7
+159,7
@@
static int add_mount(
const char *post,
const char *source) {
_cleanup_free_ char
const char *post,
const char *source) {
_cleanup_free_ char
- *name = NULL, *unit = NULL, *lnk = NULL,
*device = NULL,
+ *name = NULL, *unit = NULL, *lnk = NULL,
*automount_name = NULL, *automount_unit = NULL;
_cleanup_fclose_ FILE *f = NULL;
*automount_name = NULL, *automount_unit = NULL;
_cleanup_fclose_ FILE *f = NULL;
diff --git
a/src/journal/test-journal-interleaving.c
b/src/journal/test-journal-interleaving.c
index 2b21523f57d7c904ce8ea90c4f653aee87e77a8c..1a058eaedd2838d498648292ab3f3cb8c8b02c8a 100644
(file)
--- a/
src/journal/test-journal-interleaving.c
+++ b/
src/journal/test-journal-interleaving.c
@@
-36,7
+36,7
@@
static bool arg_keep = false;
static bool arg_keep = false;
-static void log_assert_errno(const char *text, int eno, const char *file, int line, const char *func) {
+
_noreturn_
static void log_assert_errno(const char *text, int eno, const char *file, int line, const char *func) {
log_meta(LOG_CRIT, file, line, func,
"'%s' failed at %s:%u (%s): %s.",
text, file, line, func, strerror(eno));
log_meta(LOG_CRIT, file, line, func,
"'%s' failed at %s:%u (%s): %s.",
text, file, line, func, strerror(eno));
diff --git
a/src/login/logind-dbus.c
b/src/login/logind-dbus.c
index fd8ee1b80123e5ea25ca22534660496960fb7125..ec590c0c561ebfa0fb8464a34c6bbffd84fdfb27 100644
(file)
--- a/
src/login/logind-dbus.c
+++ b/
src/login/logind-dbus.c
@@
-2395,7
+2395,6
@@
DBusHandlerResult bus_message_filter(
} else if (dbus_message_is_signal(message, "org.freedesktop.DBus.Properties", "PropertiesChanged")) {
} else if (dbus_message_is_signal(message, "org.freedesktop.DBus.Properties", "PropertiesChanged")) {
- _cleanup_dbus_message_unref_ DBusMessage *reply = NULL;
_cleanup_free_ char *unit = NULL;
const char *path;
_cleanup_free_ char *unit = NULL;
const char *path;
diff --git
a/src/login/logind-session.c
b/src/login/logind-session.c
index ce982efed45dc35b7af8dc3d4f3a56dfb28ebb1a..27aa33514232d67131d8b49040f05a8e508f5e7b 100644
(file)
--- a/
src/login/logind-session.c
+++ b/
src/login/logind-session.c
@@
-259,7
+259,6
@@
int session_load(Session *s) {
*seat = NULL,
*vtnr = NULL,
*leader = NULL,
*seat = NULL,
*vtnr = NULL,
*leader = NULL,
- *audit_id = NULL,
*type = NULL,
*class = NULL,
*uid = NULL,
*type = NULL,
*class = NULL,
*uid = NULL,
diff --git
a/src/machine/machined-dbus.c
b/src/machine/machined-dbus.c
index 5a016e76bc1c3518ffc18f955a8dd74ec85ad104..a526a5243ed2128f3fea6062563fb2ec013e1787 100644
(file)
--- a/
src/machine/machined-dbus.c
+++ b/
src/machine/machined-dbus.c
@@
-117,7
+117,6
@@
static bool valid_machine_name(const char *p) {
static int bus_manager_create_machine(Manager *manager, DBusMessage *message) {
const char *name, *service, *class, *root_directory;
static int bus_manager_create_machine(Manager *manager, DBusMessage *message) {
const char *name, *service, *class, *root_directory;
- _cleanup_free_ char *p = NULL;
DBusMessageIter iter, sub;
MachineClass c;
uint32_t leader;
DBusMessageIter iter, sub;
MachineClass c;
uint32_t leader;
@@
-560,7
+559,6
@@
DBusHandlerResult bus_message_filter(
} else if (dbus_message_is_signal(message, "org.freedesktop.DBus.Properties", "PropertiesChanged")) {
} else if (dbus_message_is_signal(message, "org.freedesktop.DBus.Properties", "PropertiesChanged")) {
- _cleanup_dbus_message_unref_ DBusMessage *reply = NULL;
_cleanup_free_ char *unit = NULL;
const char *path;
_cleanup_free_ char *unit = NULL;
const char *path;