1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-28 03:25:27 +03:00

tree-wide: remove unused variables (#3098)

This commit is contained in:
Thomas H. P. Andersen 2016-04-23 02:49:07 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 86ec5e5e29
commit 0f5e13822d
3 changed files with 2 additions and 3 deletions

View File

@ -936,7 +936,6 @@ static int append_cgroup(sd_bus_message *reply, const char *p, Set *pids) {
int bus_unit_method_get_processes(sd_bus_message *message, void *userdata, sd_bus_error *error) {
_cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL;
_cleanup_(set_freep) Set *pids = NULL;
_cleanup_free_ char *p = NULL;
Unit *u = userdata;
pid_t pid;
int r;

View File

@ -1376,7 +1376,7 @@ static int setup_hostname(void) {
static int setup_journal(const char *directory) {
sd_id128_t this_id;
_cleanup_free_ char *b = NULL, *d = NULL;
_cleanup_free_ char *d = NULL;
const char *p, *q;
bool try;
char id[33];

View File

@ -33,7 +33,7 @@
int main(int argc, char** argv) {
_cleanup_free_ char *cmd = NULL, *cmd2 = NULL, *ans = NULL, *ans2 = NULL, *d = NULL, *tmp = NULL, *line = NULL;
_cleanup_close_ int fd = -1, fd2 = -1, fd3 = -1;
_cleanup_close_ int fd = -1, fd2 = -1;
const char *p = argv[1] ?: "/tmp";
char *pattern;