]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Removed am_client variable. It was being set in one place, when a client
authorDavid Dykstra <dwd@samba.org>
Thu, 25 Feb 1999 17:58:31 +0000 (17:58 +0000)
committerDavid Dykstra <dwd@samba.org>
Thu, 25 Feb 1999 17:58:31 +0000 (17:58 +0000)
of a socket (that is, a --daemon) server, but never looked at.  The way to
test whether or not on a client is (!am_server).

clientserver.c
options.c

index a429b8d91d898e2dab830f4ecc0e8479be965609..9e79538ec1f1746e919d414f2a9da2d33ecb777f 100644 (file)
@@ -34,7 +34,6 @@ int start_socket_client(char *host, char *path, int argc, char *argv[])
        char line[MAXPATHLEN];
        char *p, *user=NULL;
        extern int remote_version;
-       extern int am_client;
        extern int am_sender;
 
        if (*path == '/') {
@@ -52,8 +51,6 @@ int start_socket_client(char *host, char *path, int argc, char *argv[])
        if (!user) user = getenv("USER");
        if (!user) user = getenv("LOGNAME");
 
-       am_client = 1;
-
        fd = open_socket_out(host, rsync_port);
        if (fd == -1) {
                exit_cleanup(RERR_SOCKETIO);
index 3b94533af912ae0b77777f6e78613f3e3493195d..abdfff3f12afe0e5a29f419085c58204a7aa3f3e 100644 (file)
--- a/options.c
+++ b/options.c
@@ -55,7 +55,6 @@ int am_server = 0;
 int am_sender=0;
 int recurse = 0;
 int am_daemon=0;
-int am_client=0;
 int do_stats=0;
 int do_progress=0;
 int keep_partial=0;