s3: Fix a bug in net's use of popt
authorVolker Lendecke <vl@samba.org>
Sun, 24 Jan 2010 17:51:58 +0000 (18:51 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 26 Jan 2010 12:00:43 +0000 (13:00 +0100)
commit340277382518c62e23faae4af69a9c5c32b96af2
treedcbebfc6d2f7f752d2a07c81fb232b9e8148e891
parent2aca69ef0df02e655125d9db31e1f0144d21a144
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