BSD doesn't have /etc/resolv.conf or /etc/inittab, and hands.test was
[rsync/rsync.git] / options.c
index e672262..ec0fc70 100644 (file)
--- a/options.c
+++ b/options.c
@@ -126,7 +126,7 @@ static void print_rsync_version(int f)
        rprintf(f, "<http://rsync.samba.org/>\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);
 
@@ -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;
                                }
                        }