Previously we were handing the addresses of bool parameters to popt for
POPT_ARG_NONE parameters. This is not supported, and popt was returning
POPT_ERROR_BADOPERATION for these parameters (not bundled popt, though,
nor on Debian or Ubuntu). Using integers instead ensures that these
addresses are aligned and sized as popt expects.
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Volker Lendecke <vl@samba.org>
char *outputfile;
size_t blocksize;
- bool quiet;
- bool dots;
- bool verbose;
- bool send_stdout;
- bool update;
+ int quiet;
+ int dots;
+ int verbose;
+ int send_stdout;
+ int update;
unsigned limit_rate;
};
static struct opt opt = { .blocksize = SMB_DEFAULT_BLOCKSIZE };
{
int c = 0;
const char *file = NULL;
- bool smb_encrypt = false;
+ int smb_encrypt = false;
int resume = 0, recursive = 0;
TALLOC_CTX *frame = talloc_stackframe();
bool ok = false;