[planner: 3/4] signedness: mark wrapper functions static
- From: Mart Raudsepp <mraudsepp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [planner: 3/4] signedness: mark wrapper functions static
- Date: Sun, 27 Jun 2021 18:34:18 +0000 (UTC)
commit ebc1057db3e0e1134ee86399f15f3cf6df514b30
Author: Günther Wagner <info gunibert de>
Date: Sun Jun 27 15:37:42 2021 +0200
signedness: mark wrapper functions static
libplanner/mrp-old-xml.c | 9 +++------
libplanner/mrp-parser.c | 9 +++------
tests/scheduler-test.c | 4 +---
3 files changed, 7 insertions(+), 15 deletions(-)
---
diff --git a/libplanner/mrp-old-xml.c b/libplanner/mrp-old-xml.c
index 266042d6..61075d92 100644
--- a/libplanner/mrp-old-xml.c
+++ b/libplanner/mrp-old-xml.c
@@ -78,18 +78,15 @@ typedef struct {
/* These are wrapper functions around the xmlChar type,
- * to prevent signedness conversion wwarnings.
+ * to prevent signedness conversion warnings.
*/
-xmlChar * xmlGetProp_ (xmlNodePtr, const gchar *);
-int strcmp_ (const xmlChar *, const gchar *);
-
-xmlChar *
+static xmlChar *
xmlGetProp_ (xmlNodePtr node, const gchar * x)
{
return xmlGetProp (node, (const xmlChar *) x);
};
-int
+static int
strcmp_ (const xmlChar * x, const gchar * y)
{
return strcmp ((const char *) x, (const char *) y);
diff --git a/libplanner/mrp-parser.c b/libplanner/mrp-parser.c
index 10db9c0b..79098599 100644
--- a/libplanner/mrp-parser.c
+++ b/libplanner/mrp-parser.c
@@ -82,18 +82,15 @@ typedef struct {
/* These are wrapper functions around the xmlChar type,
- * to prevent the signedness conversion wwarnings.
+ * to prevent the signedness conversion warnings.
*/
-void xmlSetProp_ (xmlNodePtr, const gchar *, const gchar *);
-xmlNodePtr xmlNewChild_ (xmlNodePtr, void *, const gchar *, void *);
-
-void
+static void
xmlSetProp_ (xmlNodePtr node, const gchar * x, const gchar * y)
{
xmlSetProp (node, (const xmlChar *) x, (const xmlChar *) y);
};
-xmlNodePtr
+static xmlNodePtr
xmlNewChild_ (xmlNodePtr node, void * a, const gchar * x, void * b)
{
/* a and b are NULL wherever it's called, just a dummy arg's */
diff --git a/tests/scheduler-test.c b/tests/scheduler-test.c
index 658971f4..1afa9183 100644
--- a/tests/scheduler-test.c
+++ b/tests/scheduler-test.c
@@ -20,10 +20,8 @@ typedef struct {
} TaskData;
/* These are wrapper functions around the xmlChar type,
- * to prevent signedness conversion wwarnings.
+ * to prevent signedness conversion warnings.
*/
-int strcmp_ (const xmlChar *, const gchar *);
-
int
strcmp_ (const xmlChar * x, const gchar * y)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]