X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/3b4b1984ef280e966b62d37817dbc720c38becd7..7f1b717ac74fa3ce61d8f51375717c5a4d4f75ca:/options.c diff --git a/options.c b/options.c index e6722623..6b3227dd 100644 --- a/options.c +++ b/options.c @@ -126,7 +126,7 @@ static void print_rsync_version(int f) rprintf(f, "\n"); rprintf(f, "Capabilities: %d-bit files, %ssocketpairs, " "%shard links, %ssymlinks, batchfiles\n\n", - sizeof(int64) * 8, + (int) (sizeof(int64) * 8), got_socketpair, hardlinks, links); @@ -281,7 +281,7 @@ static struct poptOption long_options[] = { {"max-delete", 0, POPT_ARG_INT, &max_delete}, {"timeout", 0, POPT_ARG_INT, &io_timeout}, {"temp-dir", 'T', POPT_ARG_STRING, &tmpdir}, - {"compare-dest", 0, POPT_ARG_NONE, &compare_dest}, + {"compare-dest", 0, POPT_ARG_STRING, &compare_dest}, /* TODO: Should this take an optional int giving the compression level? */ {"compress", 'z', POPT_ARG_NONE, &do_compression}, {"daemon", 0, POPT_ARG_NONE, &am_daemon}, @@ -471,7 +471,7 @@ int parse_arguments(int *argc, const char ***argv, int frommain) case OPT_ADDRESS: { struct in_addr *ia; - if ((ia = ip_address(optarg))) { + if ((ia = ip_address (poptGetOptArg (pc)))) { socket_address = *ia; } }