summaryrefslogtreecommitdiff
path: root/src/irmd/prog_table.c
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2021-04-05 11:05:59 +0200
committerSander Vrijders <[email protected]>2021-04-13 19:26:03 +0200
commitc43dfe6ef88910eeff96c76a424e74a554d11c55 (patch)
tree2df82de8e41c27afaf17c463f6b18961f97ccb8e /src/irmd/prog_table.c
parent809e4d1957daa701a3390b0526b125cc263bfe26 (diff)
downloadouroboros-c43dfe6ef88910eeff96c76a424e74a554d11c55.tar.gz
ouroboros-c43dfe6ef88910eeff96c76a424e74a554d11c55.zip
irmd: Remove unused variable in prog_table
This removes a program name variable that was not used anymore. Signed-off-by: Dimitri Staessens <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/irmd/prog_table.c')
-rw-r--r--src/irmd/prog_table.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/irmd/prog_table.c b/src/irmd/prog_table.c
index a6cc37ab..eb2b1966 100644
--- a/src/irmd/prog_table.c
+++ b/src/irmd/prog_table.c
@@ -30,14 +30,12 @@
#include <stdlib.h>
#include <string.h>
-struct prog_entry * prog_entry_create(char * progn,
- char * prog,
+struct prog_entry * prog_entry_create(char * prog,
uint32_t flags,
char ** argv)
{
struct prog_entry * e;
- assert(progn);
assert(prog);
e = malloc(sizeof(*e));
@@ -47,7 +45,6 @@ struct prog_entry * prog_entry_create(char * progn,
list_head_init(&e->next);
list_head_init(&e->names);
- e->progn = progn;
e->prog = prog;
e->flags = flags;
@@ -69,9 +66,6 @@ void prog_entry_destroy(struct prog_entry * e)
if (e == NULL)
return;
- if (e->progn != NULL)
- free(e->progn);
-
if (e->prog != NULL)
free(e->prog);
@@ -168,20 +162,3 @@ struct prog_entry * prog_table_get(struct list_head * prog_table,
return NULL;
}
-
-struct prog_entry * prog_table_get_by_progn(struct list_head * prog_table,
- char * progn)
-{
- struct list_head * p;
-
- assert(prog_table);
- assert(progn);
-
- list_for_each(p, prog_table) {
- struct prog_entry * e = list_entry(p, struct prog_entry, next);
- if (!strcmp(e->progn, progn))
- return e;
- }
-
- return NULL;
-}