getopt: add const to interface
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 25 Feb 2009 19:27:09 +0000 (19:27 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 25 Feb 2009 19:27:09 +0000 (19:27 +0000)
commit6c0546bb359452a454a1d30ba63d30654fa0660d
tree1fd57daa2d25cf642866ab6a560647682a064d4f
parent8d7259bdb2ade803929f6eeb1602d3b7887b449b
getopt: add const to interface

Add const to getopt argv argument, and allow getopt to be included by
c++.

This allows the ib-diags to call getopt without build warnings.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1989 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
etc/user/getopt.c
inc/user/getopt.h