s3: Fix a bug in net's use of popt
commite2e48df6dc9efb245f4c16d46f487a065d806d99
authorVolker Lendecke <vl@samba.org>
Sun, 24 Jan 2010 17:51:58 +0000 (24 18:51 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 26 Jan 2010 13:55:36 +0000 (26 14:55 +0100)
tree6a49d34d0be977b1085a087f236d16ec8942165a
parenta97d76b1515be57746b22413ec4bc1533feee71d
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...
(cherry picked from commit 340277382518c62e23faae4af69a9c5c32b96af2)
source3/utils/net.h