Commit 187e865
committed
> Rod Taylor <rbt@rbt.ca> writes:
> > It seems that readline() on my system (FreeBSD 4.8) isn't declared to
> > take the prompt as a const. Thus, remove const from gets_interactive()
> > to remove the warning.
>
> I think it would be a lot cleaner to just put a cast to char * into the
> readline call (with a note about why).
Ok.. that works.
I must say it's a little strange being able to take a constant and say
its no longer constant anymore -- but I suppose it's no different than
defining then undefining pre-processor constants.
Rod Taylor <rbt@rbt.ca>1 parent 6a0d6d0 commit 187e865Copy full SHA for 187e865
File tree
Expand file treeCollapse file tree
1 file changed
+3
-2
lines changedOpen diff view settings
Filter options
- src/bin/psql
Expand file treeCollapse file tree
1 file changed
+3
-2
lines changedOpen diff view settings
Collapse file
+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
| 6 | + |
7 | 7 | |
8 | 8 | |
9 | 9 | |
| ||
86 | 86 | |
87 | 87 | |
88 | 88 | |
89 | | - |
| 89 | + |
| 90 | + |
90 | 91 | |
91 | 92 | |
92 | 93 | |
|
0 commit comments