1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

remove unused variables (#8768)

clang 5.0 complains with -Wunused-variable
This commit is contained in:
Tobias Jungel 2018-04-20 13:31:17 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 11102cba69
commit 201b26a344
2 changed files with 0 additions and 3 deletions

View File

@ -729,7 +729,6 @@ int lookup_paths_reduce(LookupPaths *p) {
return 0;
while (p->search_path[c]) {
_cleanup_free_ char *chased = NULL;
struct stat st;
unsigned k;

View File

@ -83,7 +83,6 @@ static void context_free(Context *c) {
}
static int context_add_ntp_service(Context *c, const char *s) {
_cleanup_free_ char *name = NULL;
UnitStatusInfo *u;
if (!unit_name_is_valid(s, UNIT_NAME_PLAIN))
@ -322,7 +321,6 @@ static int context_update_ntp_status(Context *c, sd_bus *bus, sd_bus_message *m)
LIST_FOREACH(units, u, c->units) {
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
_cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL;
_cleanup_free_ char *path = NULL;
unit_status_info_clear(u);