mcst-linux-kernel/patches-2024.06.26/gpm-1.20.7/0002-index-strchr-for-new-g...

28 lines
839 B
Diff

From 1a710272ebdba66945bb0e3329545a23aa0da8ef Mon Sep 17 00:00:00 2001
Date: Tue, 24 Sep 2019 23:28:18 +0300
Subject: [PATCH] index -> strchr for new glibc
---
src/synaptics.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/synaptics.c b/src/synaptics.c
index 2418c75..0bff82a 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -2134,9 +2134,9 @@ void tp_read_config_file (char* config_filename)
break;
case Flag_Param:
- if (index ("YyTt1", token [0])) {
+ if (strchr ("YyTt1", token [0])) {
*(param_data [param].addr.flag_p) = 1;
- } else if (index ("NnFf0", token [0])) {
+ } else if (strchr ("NnFf0", token [0])) {
*(param_data [param].addr.flag_p) = 0;
} else {
gpm_report (GPM_PR_WARN,"Flag value (%s) for parameter %s is invalid",
--
1.9.5