From: Jim Meyering <[email protected]>
* tools/corosync-fplay.c (sync_printer_nada): Remove function.
* tools/corosync-objctl.c (get_child_name): Remove function.
* test/evsverify.c (msg): Remove unused variable.
---
test/evsverify.c | 2 --
tools/corosync-fplay.c | 4 ----
tools/corosync-objctl.c | 17 -----------------
3 files changed, 0 insertions(+), 23 deletions(-)
diff --git a/test/evsverify.c b/test/evsverify.c
index 67d60a0..7d764f9 100644
--- a/test/evsverify.c
+++ b/test/evsverify.c
@@ -114,8 +114,6 @@ struct evs_group groups[3] = {
{ "key3" }
};
-static struct my_msg msg;
-
static unsigned char buffer[200000];
int main (void)
{
diff --git a/tools/corosync-fplay.c b/tools/corosync-fplay.c
index cd00158..c62aecb 100644
--- a/tools/corosync-fplay.c
+++ b/tools/corosync-fplay.c
@@ -149,10 +149,6 @@ static void sync_printer_section_receive (void **record)
print_string_len (section_name, *section_name_len));
}
-static void sync_printer_nada (void **record)
-{
- printf ("nada\n");
-}
static void sync_printer_confchg_fn (void **record)
{
unsigned int i;
diff --git a/tools/corosync-objctl.c b/tools/corosync-objctl.c
index 30be938..ca85f9a 100644
--- a/tools/corosync-objctl.c
+++ b/tools/corosync-objctl.c
@@ -203,23 +203,6 @@ static cs_error_t validate_name(char * obj_name_pt)
return CS_ERR_INVALID_PARAM;
}
-static void get_child_name(const char * name_pt, char * child_name)
-{
- char * tmp;
- char str_copy[OBJ_NAME_SIZE];
-
- strcpy(str_copy, name_pt);
-
- /* first remove the value (it could be a file path */
- tmp = strchr(str_copy, '=');
- if (tmp != NULL) *tmp = '\0';
-
- /* truncate the */
- tmp = strrchr(str_copy, SEPERATOR);
- if (tmp == NULL) tmp = str_copy;
- strcpy(child_name, tmp+1);
-}
-
static void get_parent_name(const char * name_pt, char * parent_name)
{
char * tmp;
--
1.6.2.rc1.285.gc5f54
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais