1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-09-10 05:02:34 +00:00

cgminer.c sharelog code consistency and compile warning fix

This commit is contained in:
Kano 2012-04-26 00:20:16 +10:00
parent 84a0012ffe
commit b3ac249e71

View File

@ -324,10 +324,10 @@ static void applog_and_exit(const char *fmt, ...)
} }
static pthread_mutex_t sharelog_lock; static pthread_mutex_t sharelog_lock;
FILE *sharelog_file = NULL; static FILE *sharelog_file = NULL;
static void static void sharelog(const char*disposition, const struct work*work)
sharelog(const char*disposition, const struct work*work) { {
if (!sharelog_file) if (!sharelog_file)
return; return;
@ -361,7 +361,7 @@ sharelog(const char*disposition, const struct work*work) {
free(target); free(target);
free(hash); free(hash);
free(data); free(data);
if (rv >= sizeof(s)) if (rv >= (int)(sizeof(s)))
s[sizeof(s) - 1] = '\0'; s[sizeof(s) - 1] = '\0';
else else
if (rv < 0) { if (rv < 0) {