[iortcw] 24/497: MP: Remove the console print of CD key / clean up some stuff uncrustify shifted

Simon McVittie smcv at debian.org
Fri Sep 8 10:36:06 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 5ab5797abe0490b54674813a45552aa7e66b32af
Author: M4N4T4RMS at gmail.com <M4N4T4RMS at gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date:   Fri Jan 24 02:25:21 2014 +0000

    MP: Remove the console print of CD key / clean up some stuff uncrustify shifted
---
 MP/code/qcommon/pbmd5.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/MP/code/qcommon/pbmd5.c b/MP/code/qcommon/pbmd5.c
index 524c9c9..007322d 100644
--- a/MP/code/qcommon/pbmd5.c
+++ b/MP/code/qcommon/pbmd5.c
@@ -322,7 +322,7 @@ char *Com_PBMD5File( char *key ) {
 
 	k = key;
 
-	Com_DPrintf( "GUID of cdkey %s: ", k );
+//	Com_DPrintf( "GUID of cdkey %s: ", k );
 
 	// Process first seed
 	k = do_md5x( k, strlen( k ), get_num( "0x00b684a3", NULL ) );
@@ -330,7 +330,7 @@ char *Com_PBMD5File( char *key ) {
 	// Process second seed
 	k = do_md5x( k, 32, get_num( "0x00051a56", NULL ) );
 
-	Com_DPrintf( "%s\n", k );
+//	Com_DPrintf( "%s\n", k );
 
 	return k;
 }
@@ -339,7 +339,7 @@ char *Com_PBMD5File( char *key ) {
 char *do_md5x( char *data, int len, int seed ) {
 	MD5_CTX ctx;
 	int i;
-	char      *p;
+	char *p;
 	static char ret[33];
 	static const char hex[] = "0123456789abcdef";
 
@@ -353,19 +353,20 @@ char *do_md5x( char *data, int len, int seed ) {
 		*p++ = hex[ctx.digest[i] & 15];
 	}
 	*p = 0;
-	return( ret );
+
+	return ret;
 }
 
 
 
 int get_num( char *str, int *len ) {
-	int num,
-		tmp;
+	int num, tmp;
 
 	if ( !len ) {
 		len = &tmp;
 	}
 	*len = 0;
+
 	if ( !str[0] ) {
 		return( 0 );
 	}
@@ -374,7 +375,7 @@ int get_num( char *str, int *len ) {
 	} else {
 		sscanf( str, "%d%n", &num, len );
 	}
-	return( num );
+	return num;
 }
 
 #endif // USE_PBMD5

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list