Whamcloud - gitweb
LU-5418: compilation fix when using newer readline lib 31/11231/3
authorFrank Zago <fzago@cray.com>
Fri, 25 Jul 2014 18:30:58 +0000 (13:30 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 28 Jul 2014 03:02:44 +0000 (03:02 +0000)
commit7629b7f51568a8cb2bedf2460cbfb1f9446769ca
treeea8b59c67c6c4a675b34ce0cd41756f8599124ca
parentdb5abf4b2b3fadc054a4e7d0d5a6b2fd9a99023c
LU-5418: compilation fix when using newer readline lib

Newer versions of readline have removed (or hidden) CPPFunction,
leading to the following compilation issue:

util/parser.c: In function 'init_input':
util/parser.c:308:45: error: 'CPPFunction' undeclared
                              (first use in this function)

Remove all the casts in init_input and fix the involded functions
instead. Also, make init_input() static, fix its declaration, and
convert some spaces to tabs.

Change-Id: I4896aaa01f8b8f91bd5cb81f858c759d71d52a56
Signed-off-by: frank zago <fzago@cray.com>
Reviewed-on: http://review.whamcloud.com/11231
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Robert Read <robert.read@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/libcfs/util/parser.c