summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-05 17:08:13 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-05 17:08:13 -0800
commita9bf2939f0a6536a792515d6fda29a7c754274c6 (patch)
tree7eb4feb3234958a0b9719b33dcbf7a65f1dda72b
parentf52912d06279d4c32e5031d1416f2f273bb42116 (diff)
Handle 5 -Wmissing-prototypes warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/synaptics.c4
-rw-r--r--src/synapticsstr.h4
-rw-r--r--tools/syndaemon.c6
3 files changed, 7 insertions, 7 deletions
diff --git a/src/synaptics.c b/src/synaptics.c
index 2fd77f6..70d8809 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -140,10 +140,6 @@ static void CalculateScalingCoeffs(SynapticsPrivate * priv);
#endif
static void SanitizeDimensions(InputInfoPtr pInfo);
-void InitDeviceProperties(InputInfoPtr pInfo);
-int SetProperty(DeviceIntPtr dev, Atom property, XIPropertyValuePtr prop,
- BOOL checkonly);
-
const static struct {
const char *name;
struct SynapticsProtocolOperations *proto_ops;
diff --git a/src/synapticsstr.h b/src/synapticsstr.h
index 7972a9c..a6513db 100644
--- a/src/synapticsstr.h
+++ b/src/synapticsstr.h
@@ -331,4 +331,8 @@ struct _SynapticsPrivateRec {
int num_active_touches; /* Number of active touches on device */
};
+void InitDeviceProperties(InputInfoPtr pInfo);
+int SetProperty(DeviceIntPtr dev, Atom property, XIPropertyValuePtr prop,
+ BOOL checkonly);
+
#endif /* _SYNAPTICSSTR_H_ */
diff --git a/tools/syndaemon.c b/tools/syndaemon.c
index 575bc6c..9c86a5c 100644
--- a/tools/syndaemon.c
+++ b/tools/syndaemon.c
@@ -310,7 +310,7 @@ struct xrecord_callback_results {
};
/* test if the xrecord extension is found */
-Bool
+static Bool
check_xrecord(Display * display)
{
@@ -331,7 +331,7 @@ check_xrecord(Display * display)
}
/* called by XRecordProcessReplies() */
-void
+static void
xrecord_callback(XPointer closure, XRecordInterceptData * recorded_data)
{
@@ -405,7 +405,7 @@ is_modifier_pressed(const struct xrecord_callback_results *cbres)
return 0;
}
-void
+static void
record_main_loop(Display * display, double idle_time)
{