diff options
| author | Michael Forney <mforney@mforney.org> | 2019-02-22 00:13:35 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-03-03 22:45:39 -0800 |
| commit | a633e7508f7afa028488feb9b7642be77b4cd7c2 (patch) | |
| tree | a674e73eff45a611c78b67d63223966ad59e73c2 /pkg/perp/patch/0005-Remove-unused-variable.patch | |
| parent | 9b4c353cd82b5cf4485de040013e3895b20309e7 (diff) | |
perp: Add a few cleanup patches
Diffstat (limited to 'pkg/perp/patch/0005-Remove-unused-variable.patch')
| -rw-r--r-- | pkg/perp/patch/0005-Remove-unused-variable.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkg/perp/patch/0005-Remove-unused-variable.patch b/pkg/perp/patch/0005-Remove-unused-variable.patch new file mode 100644 index 00000000..7903b6ca --- /dev/null +++ b/pkg/perp/patch/0005-Remove-unused-variable.patch @@ -0,0 +1,34 @@ +From 2cc852e07038ee17d56ec6a54ae9b1c19b598289 Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Thu, 21 Feb 2019 23:57:15 -0800 +Subject: [PATCH] Remove unused variable + +--- + perp/perpd_svdef.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/perp/perpd_svdef.c b/perp/perpd_svdef.c +index 82fb0a0..7b5e87f 100644 +--- a/perp/perpd_svdef.c ++++ b/perp/perpd_svdef.c +@@ -186,7 +186,7 @@ void + perpd_svdef_checkfail(struct svdef *svdef) + { + struct subsv *subsv; +- int target, r = 0; ++ int target; + + /* insanity? */ + if(!(svdef->bitflags & SVDEF_FLAG_ACTIVE)) +@@ -201,7 +201,7 @@ perpd_svdef_checkfail(struct svdef *svdef) + subsv = (svdef->bitflags & SVDEF_FLAG_HASLOG) ? &svdef->svpair[SUBSV_LOG] : NULL; + if((subsv != NULL) && (subsv->bitflags & SUBSV_FLAG_FAILING)){ + target = (subsv->bitflags & SUBSV_FLAG_ISRESET) ? SVRUN_RESET : SVRUN_START; +- r = perpd_svdef_run(svdef, SUBSV_LOG, target); ++ perpd_svdef_run(svdef, SUBSV_LOG, target); + } + + /* XXX, bail here if log is failing? */ +-- +2.20.1 + |
