Changed the order of the msgcode enum so that new items now get added
authorWayne Davison <wayned@samba.org>
Sat, 8 May 2004 18:48:09 +0000 (18:48 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 8 May 2004 18:48:09 +0000 (18:48 +0000)
at the start (which avoids the need for trailing-comma changes on old
entries when new ones are added).

rsync.h

diff --git a/rsync.h b/rsync.h
index ea8667c..d60f06a 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -120,10 +120,10 @@ enum logcode { FERROR=1, FINFO=2, FLOG=3 };
 /* Messages types that are sent over the message channel.  The logcode
  * values must all be present here with identical numbers. */
 enum msgcode {
-       MSG_DATA=0,     /* raw data on the multiplexed stream */
-       MSG_ERROR=FERROR, MSG_INFO=FINFO, MSG_LOG=FLOG, /* remote logging */
+       MSG_DONE=5,     /* current phase is done */
        MSG_REDO=4,     /* reprocess indicated flist index */
-       MSG_DONE=5      /* current phase is done */
+       MSG_ERROR=FERROR, MSG_INFO=FINFO, MSG_LOG=FLOG, /* remote logging */
+       MSG_DATA=0      /* raw data on the multiplexed stream */
 };
 
 #include "errcode.h"