summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-01 18:16:59 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-01 18:33:38 -0800
commit9602a9f11dd5ac928a7275ceb1a58d5328b9d49e (patch)
treeaa5da5de64daf76764ca444ae560ffd14fd4dfeb
parent3672840c24e0826b7305d5143c95b2d070c57366 (diff)
greeter: Constify value argument to SetValue()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--greeter/Login.c2
-rw-r--r--greeter/Login.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/greeter/Login.c b/greeter/Login.c
index f37cc1c..e9fe8bb 100644
--- a/greeter/Login.c
+++ b/greeter/Login.c
@@ -910,7 +910,7 @@ GetPrompt(Widget ctx, int promptNum)
_X_INTERNAL
int
-SetValue(Widget ctx, int promptNum, char *value)
+SetValue(Widget ctx, int promptNum, const char *value)
{
LoginWidget w = (LoginWidget) ctx;
diff --git a/greeter/Login.h b/greeter/Login.h
index 5054089..c9a69a9 100644
--- a/greeter/Login.h
+++ b/greeter/Login.h
@@ -220,7 +220,7 @@ extern int SetPrompt(Widget ctx, int promptId, const char *message,
loginPromptState state, Boolean minimumTime);
extern const char *GetPrompt(Widget ctx, int promptId);
-extern int SetValue(Widget ctx, int promptId, char *value);
+extern int SetValue(Widget ctx, int promptId, const char *value);
extern const char *GetValue(Widget ctx, int promptId);
#endif /* _XtLogin_h */