summaryrefslogtreecommitdiff
path: root/src/bin/psql/prompt.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-01-29 01:16:24 +0100
committerPeter Eisentraut <peter@eisentraut.org>2019-02-13 11:50:16 +0100
commit37d9916020286caec810f4de61fbd0de3568454d (patch)
treed9d80040f72093664d8a20b55de2a670988d281e /src/bin/psql/prompt.c
parentcf40dc65b676c8df1ee12f060b40f0e37a183e04 (diff)
More unconstify use
Replace casts whose only purpose is to cast away const with the unconstify() macro. Discussion: https://www.postgresql.org/message-id/flat/53a28052-f9f3-1808-fed9-460fd43035ab%402ndquadrant.com
Diffstat (limited to 'src/bin/psql/prompt.c')
-rw-r--r--src/bin/psql/prompt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/prompt.c b/src/bin/psql/prompt.c
index 73394dc828d..4514cf8551c 100644
--- a/src/bin/psql/prompt.c
+++ b/src/bin/psql/prompt.c
@@ -181,7 +181,7 @@ get_prompt(promptStatus_t status, ConditionalStack cstack)
case '5':
case '6':
case '7':
- *buf = (char) strtol(p, (char **) &p, 8);
+ *buf = (char) strtol(p, unconstify(char **, &p), 8);
--p;
break;
case 'R':