forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8666cf6
committed
Modernize const handling with readline
The comment /* On some platforms, readline is declared as readline(char *) */is obsolete. The casting away of const can be removed.The const in the readline() prototype was added in GNU readline 4.2,released in 2001. BSD libedit has also had const in the prototypesince at least 2001.(The commit that introduced this comment (187e865) talked aboutFreeBSD 4.8, which didn't have readline compatibility in libedit yet,so it must have been talking about GNU readline in the base system.This checks out, but already FreeBSD 5 had an updated GNU readlinewith const.)Reviewed-by: Aleksander Alekseev <aleksander@timescale.com>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://www.postgresql.org/message-id/flat/862fc1d4-9a0c-d2b6-5451-ee3dc750bcab%40eisentraut.org1 parent4f29946 commit8666cf6
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
91 |
| - | |
92 |
| - | |
| 91 | + | |
93 | 92 |
| |
94 | 93 |
| |
95 | 94 |
| |
|
0 commit comments
Comments
(0)