+2007-01-09 Mauro Tortonesi <mauro@ferrara.linux.it>
+
+ * init.c (cmd_spec_prefer_family): Small fix to get rid of a gcc
+ warning about strict-aliasing violation.
+
2007-01-09 Steven M. Schweda <sms@antinode.org>
* ftp-basic.c (ftp_syst): Fixed segfault if response text is missing.
{ "IPv6", prefer_ipv6 },
{ "none", prefer_none },
};
- int ok = decode_string (val, choices, countof (choices),
- (int *) &opt.prefer_family);
+ int prefer_family = prefer_ipv4;
+ int ok = decode_string (val, choices, countof (choices), &prefer_family);
if (!ok)
fprintf (stderr, _("%s: %s: Invalid value `%s'.\n"), exec_name, com, val);
+ opt.prefer_family = prefer_family;
return ok;
}