]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: remove unused variables 5852/head
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 28 Apr 2017 21:49:50 +0000 (23:49 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 28 Apr 2017 21:56:44 +0000 (23:56 +0200)
src/core/service.c
src/import/pull-common.c
src/import/pull-raw.c

index a63c6d8bc392425ccc738abbb41181ed037b098a..b45929e5353bd4018d52e82e6d41e0eb34f353fe 100644 (file)
@@ -2163,7 +2163,6 @@ static int service_serialize_exec_command(Unit *u, FILE *f, ExecCommand *command
         unsigned idx;
         const char *type;
         char **arg;
-        _cleanup_strv_free_ char **escaped_args = NULL;
         _cleanup_free_ char *args = NULL, *p = NULL;
         size_t allocated = 0, length = 0;
 
@@ -2306,7 +2305,7 @@ static int service_deserialize_exec_command(Unit *u, const char *key, const char
         bool control, found = false;
         ServiceExecCommand id = _SERVICE_EXEC_COMMAND_INVALID;
         ExecCommand *command = NULL;
-        _cleanup_free_ char *args = NULL, *path = NULL;
+        _cleanup_free_ char *path = NULL;
         _cleanup_strv_free_ char **argv = NULL;
 
         enum ExecCommandState {
index 4c745288f57c7400cbfb2598fb067d314a4e3095..78840dd8822835ee851f780562f7f6ad45c6f9aa 100644 (file)
@@ -394,7 +394,6 @@ int pull_verify(PullJob *main_job,
                 PullJob *signature_job) {
 
         _cleanup_close_pair_ int gpg_pipe[2] = { -1, -1 };
-        _cleanup_free_ char *fn = NULL;
         _cleanup_close_ int sig_file = -1;
         char sig_file_path[] = "/tmp/sigXXXXXX", gpg_home[] = "/tmp/gpghomeXXXXXX";
         _cleanup_(sigkill_waitp) pid_t pid = 0;
index fd2e472f092ba4df60cbb32dc77f712849861f91..a15eac1f1fe865640981a4d8d0d897e1e94e9fd0 100644 (file)
@@ -580,7 +580,6 @@ static int raw_pull_job_on_open_disk_generic(
                 const char *extra,
                 char **temp_path) {
 
-        _cleanup_free_ char *p = NULL;
         int r;
 
         assert(i);