[SCM] The rsync repository. - branch master updated

Rsync CVS commit messages rsync-cvs at lists.samba.org
Fri Jun 19 17:38:05 UTC 2020


The branch, master has been updated
       via  73053f26 Simple change to recv_token().
      from  0c13e1b3 Prevent unnecessary xattr warning by reordering header inclusion. (#22)

https://git.samba.org/?p=rsync.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 73053f26bcc1c9f2f0f7b2420200c685f94e21f1
Author: Wayne Davison <wayne at opencoder.net>
Date:   Fri Jun 19 09:55:48 2020 -0700

    Simple change to recv_token().

-----------------------------------------------------------------------

Summary of changes:
 token.c | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)


Changeset truncated at 500 lines:

diff --git a/token.c b/token.c
index 7e942f2f..8a335886 100644
--- a/token.c
+++ b/token.c
@@ -1135,30 +1135,23 @@ void send_token(int f, int32 token, struct map_struct *buf, OFF_T offset,
  */
 int32 recv_token(int f, char **data)
 {
-	int tok;
-
 	switch (do_compression) {
 	case CPRES_NONE:
-		tok = simple_recv_token(f,data);
-		break;
+		return simple_recv_token(f,data);
 	case CPRES_ZLIB:
 	case CPRES_ZLIBX:
-		tok = recv_deflated_token(f, data);
-		break;
+		return recv_deflated_token(f, data);
 #ifdef SUPPORT_ZSTD
 	case CPRES_ZSTD:
-		tok = recv_zstd_token(f, data);
-		break;
+		return recv_zstd_token(f, data);
 #endif
 #ifdef SUPPORT_LZ4
 	case CPRES_LZ4:
-		tok = recv_compressed_token(f, data);
-		break;
+		return recv_compressed_token(f, data);
 #endif
 	default:
 		assert(0);
 	}
-	return tok;
 }
 
 /*


-- 
The rsync repository.



More information about the rsync-cvs mailing list