Browse Source

Rename scrypt regenhash function for consistency.

Con Kolivas 12 years ago
parent
commit
a6250fbb96
3 changed files with 4 additions and 4 deletions
  1. 1 1
      cgminer.c
  2. 1 1
      scrypt.c
  3. 2 2
      scrypt.h

+ 1 - 1
cgminer.c

@@ -3249,7 +3249,7 @@ static void regen_hash(struct work *work)
 static void rebuild_hash(struct work *work)
 {
 	if (opt_scrypt)
-		scrypt_outputhash(work);
+		scrypt_regenhash(work);
 	else
 		regen_hash(work);
 

+ 1 - 1
scrypt.c

@@ -405,7 +405,7 @@ static void scrypt_1024_1_1_256_sp(const uint32_t* input, char* scratchpad, uint
 /* 131583 rounded up to 4 byte alignment */
 #define SCRATCHBUF_SIZE	(131584)
 
-void scrypt_outputhash(struct work *work)
+void scrypt_regenhash(struct work *work)
 {
 	uint32_t data[20];
 	char *scratchbuf;

+ 2 - 2
scrypt.h

@@ -6,7 +6,7 @@
 #ifdef USE_SCRYPT
 extern bool scrypt_test(unsigned char *pdata, const unsigned char *ptarget,
 			uint32_t nonce);
-extern void scrypt_outputhash(struct work *work);
+extern void scrypt_regenhash(struct work *work);
 
 #else /* USE_SCRYPT */
 static inline bool scrypt_test(__maybe_unused unsigned char *pdata,
@@ -16,7 +16,7 @@ static inline bool scrypt_test(__maybe_unused unsigned char *pdata,
 	return false;
 }
 
-static inline void scrypt_outputhash(__maybe_unused struct work *work)
+static inline void scrypt_regenhash(__maybe_unused struct work *work)
 {
 }
 #endif /* USE_SCRYPT */