s3: Fix a bug in net's use of popt
commit8258675002ffc5ffd2767a390f866f0efe358ba7
authorVolker Lendecke <vl@samba.org>
Sun, 24 Jan 2010 17:51:58 +0000 (24 18:51 +0100)
committerFernando J V da Silva <fernandojvsilva@yahoo.com.br>
Thu, 4 Feb 2010 19:09:42 +0000 (4 17:09 -0200)
tree55047c0944fe6d4674c466cc948b0b236c680f39
parent12320943b8ed416d94be65198d31425793daf416
s3: Fix a bug in net's use of popt

In order to add --use-ccache to net, I added another "bool opt_ccache;" to
struct net_context. popt did not like this, it took a while to figure out why.
Popt has the lines

    /* XXX Check alignment, may fail on funky platforms. */
    if (arg == NULL || (((unsigned long)arg) & (sizeof(*arg)-1)))
        return POPT_ERROR_NULLARG;

The "bool opt_ccache;" was not aligned anymore...
source3/utils/net.h