RE: [ofa-general] RE: [ib-diag] sminfo: add support for WinOF

2009-02-14 Thread Sean Hefty
static const struct ibdiag_opt *opts_map[256]; and later: memset(opts_map, 0, sizeof(opts_map)); And on second thought... can we just drop the memset completely? ___ general mailing list general@lists.openfabrics.org

Re: [ofa-general] RE: [ib-diag] sminfo: add support for WinOF

2009-02-14 Thread Sasha Khapyorsky
On 18:04 Sat 14 Feb , Sean Hefty wrote: static const struct ibdiag_opt *opts_map[256]; and later: memset(opts_map, 0, sizeof(opts_map)); And on second thought... can we just drop the memset completely? Yes, this is static and already initialized. Sasha