libncurses: Avoid warning when calling cgetent().
authorzrj <rimvydas.jasinskas@gmail.com>
Sun, 25 Sep 2016 11:08:29 +0000 (14:08 +0300)
committerzrj <zrj@dragonflybsd.org>
Mon, 26 Sep 2016 06:10:16 +0000 (09:10 +0300)
commite02a905d0800ea51e6685792106ea01bcc1c39ca
tree8e4e7be68972ba435fb4dd19cc0e9d9016c06a64
parent095985121e34fb8501c6d6afb0d38e6f6a30fc0d
libncurses: Avoid warning when calling cgetent().

Since both read_termcap.c static version of cgetent() and cgetent(3) has second
argument as char** just use __DECONST() trick so to not have big changes.
It should be safe to do that, base libncurses is a private library now.
contrib/ncurses/ncurses/tinfo/read_termcap.c