mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-30 00:14:26 +00:00
cgminer.c sharelog code consistency and compile warning fix
This commit is contained in:
parent
84a0012ffe
commit
b3ac249e71
@ -324,10 +324,10 @@ static void applog_and_exit(const char *fmt, ...)
|
||||
}
|
||||
|
||||
static pthread_mutex_t sharelog_lock;
|
||||
FILE *sharelog_file = NULL;
|
||||
static FILE *sharelog_file = NULL;
|
||||
|
||||
static void
|
||||
sharelog(const char*disposition, const struct work*work) {
|
||||
static void sharelog(const char*disposition, const struct work*work)
|
||||
{
|
||||
if (!sharelog_file)
|
||||
return;
|
||||
|
||||
@ -361,7 +361,7 @@ sharelog(const char*disposition, const struct work*work) {
|
||||
free(target);
|
||||
free(hash);
|
||||
free(data);
|
||||
if (rv >= sizeof(s))
|
||||
if (rv >= (int)(sizeof(s)))
|
||||
s[sizeof(s) - 1] = '\0';
|
||||
else
|
||||
if (rv < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user