Add some comments.
authorMartin Pool <mbp@samba.org>
Thu, 2 Nov 2000 11:37:34 +0000 (11:37 +0000)
committerMartin Pool <mbp@samba.org>
Thu, 2 Nov 2000 11:37:34 +0000 (11:37 +0000)
io.c
main.c

diff --git a/io.c b/io.c
index 2f4162cdac88ecef72a2a4ea4b617c2ab2dac9f8..b58eff0c13bcbb856a69780f06f1effc52e0fdd9 100644 (file)
--- 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 57992482cc584d126022bbd71baa05d944f6792d..ca2b456f2191c5bbe4c5b0f8aacff12d23414582 100644 (file)
--- 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;