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)
committerVolker Lendecke <vl@samba.org>
Sun, 24 Jan 2010 19:32:17 +0000 (20:32 +0100)
commitbff48738a88875c5279e70f2886e894584f0cd7f
tree9de9073adec51e900b29683faacbdc3d83465f07
parentb8996baba613edd1e50bffa87647c41e03b08db3
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