Oops, fix edit mistake.
[rsync/rsync.git] / log.c
diff --git a/log.c b/log.c
index 10f34d6..aef3ac8 100644 (file)
--- a/log.c
+++ b/log.c
@@ -1,6 +1,7 @@
 /* -*- c-file-style: "linux"; -*-
    
-   Copyright (C) 1998-2000 by Andrew Tridgell
+   Copyright (C) 1998-2001 by Andrew Tridgell <tridge@samba.org>
+   Copyright (C) 2000-2001 by Martin Pool <mbp@samba.org>
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 */
 
 /*
-  logging and utility functions
-
+  Logging and utility functions.
   tridge, May 1998
+
+  Mapping to human-readable messages added by Martin Pool
+  <mbp@samba.org>, Oct 2000.
   */
 #include "rsync.h"
 
@@ -42,7 +45,7 @@ struct {
        { RERR_STREAMIO   , "error in rsync protocol data stream" }, 
        { RERR_MESSAGEIO  , "errors with program diagnostics" }, 
        { RERR_IPC        , "error in IPC code" }, 
-       { RERR_SIGNAL     , "status returned when sent SIGUSR1, SIGINT" }, 
+       { RERR_SIGNAL     , "received SIGUSR1 or SIGINT" }, 
        { RERR_WAITCHILD  , "some error returned by waitpid()" }, 
        { RERR_MALLOC     , "error allocating core memory buffers" }, 
        { RERR_TIMEOUT    , "timeout in data send/receive" }, 
@@ -169,7 +172,7 @@ void rwrite(enum logcode code, char *buf, int len)
                return;
        }
 
-       /* then try to pass it to the other end */
+       /* if that fails, try to pass it to the other end */
        if (am_server && io_multiplex_write(code, buf, len)) {
                return;
        }