From 0ba481368c2a44d6d6a2f361fa12df432d9d304b Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Thu, 2 Nov 2000 11:37:34 +0000 Subject: [PATCH] Add some comments. --- io.c | 2 ++ main.c | 16 ++++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/io.c b/io.c index 2f4162cd..b58eff0c 100644 --- a/io.c +++ b/io.c @@ -455,6 +455,8 @@ void io_flush(void) io_buffer_count = 0; } + +/* XXX: fd is ignored, which seems a little strange. */ void io_end_buffering(int fd) { io_flush(); diff --git a/main.c b/main.c index 57992482..ca2b456f 100644 --- a/main.c +++ b/main.c @@ -1,5 +1,6 @@ -/* - Copyright (C) Andrew Tridgell 1996 +/* -*- c-file-style: "linux" -*- + + Copyright (C) 1996-2000 by Andrew Tridgell Copyright (C) Paul Mackerras 1996 This program is free software; you can redistribute it and/or modify @@ -458,6 +459,11 @@ void start_server(int f_in, int f_out, int argc, char *argv[]) exit_cleanup(0); } + +/* + * This is called once the connection has been negotiated. It is used + * for rsyncd, remote-shell, and local connections. + */ int client_run(int f_in, int f_out, int pid, int argc, char *argv[]) { struct file_list *flist; @@ -545,6 +551,12 @@ static char *find_colon(char *s) return p; } + +/* + * Start a client for either type of remote connection. Work out + * whether the arguments request a remote shell or rsyncd connection, + * and call the appropriate connection function, then run_client. + */ static int start_client(int argc, char *argv[]) { char *p; -- 2.34.1