- Notifications
You must be signed in to change notification settings - Fork5
Commit187e865
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 sayits no longer constant anymore -- but I suppose it's no different thandefining then undefining pre-processor constants.Rod Taylor <rbt@rbt.ca>1 parent6a0d6d0 commit187e865
1 file changed
+3
-2
lines changed| 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
Comments
(0)