summaryrefslogtreecommitdiffstats
path: root/include/net/checksum.h
diff options
context:
space:
mode:
authorDirk Gouders <dirk@gouders.net>2013-05-13 11:23:58 +0200
committerYann E. MORIN <yann.morin.1998@free.fr>2013-06-18 23:58:58 +0200
commite0b42605e685a0833303e1d4dde277c99d9e17b5 (patch)
treeb6f1c8101c404a11d2dccfabfd2141b3e3e6799f /include/net/checksum.h
parentmconf: use function calls instead of ncurses' variables LINES and COLS (diff)
downloadlinux-e0b42605e685a0833303e1d4dde277c99d9e17b5.tar.xz
linux-e0b42605e685a0833303e1d4dde277c99d9e17b5.zip
nconf: use function calls instead of ncurses' variables LINES and COLS
According to the documentation [1], LINES and COLS are initialized by initscr(); it does not say anything about the behavior when windows are resized. Do not rely on the current implementation of ncurses that updates these variables on resize, but use the propper function calls or macros to get window dimensions. The use of the variables in main() was OK, but for the sake of consistency it was modified to use the macro getmaxyx(). [1] ncurses(3X) Signed-off-by: Dirk Gouders <dirk@gouders.net> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [yann.morin.1998@free.fr: declare 'lines' and 'columns' on a single line] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Diffstat (limited to 'include/net/checksum.h')
0 files changed, 0 insertions, 0 deletions