Improved the SUBPROTOCOL_VERSION code a little, and bumped the value
[rsync/rsync.git] / rsync.h
diff --git a/rsync.h b/rsync.h
index 6b25e6c..4717e35 100644 (file)
--- a/rsync.h
+++ b/rsync.h
 /* update this if you make incompatible changes */
 #define PROTOCOL_VERSION 30
 
+/* This is used when working on a new protocol version in CVS, and should
+ * be a new non-zero value for each CVS change that affects the protocol.
+ * It must ALWAYS be 0 when the protocol goes final! */
+#define SUBPROTOCOL_VERSION 2
+
 /* We refuse to interoperate with versions that are not in this range.
  * Note that we assume we'll work with later versions: the onus is on
  * people writing them to make sure that they don't send us anything
@@ -779,6 +784,7 @@ typedef struct {
 
 #ifndef __GNUC__
 #define __attribute__(x)
+#else
 # if __GNUC__ <= 2
 # define NORETURN
 # endif