1
0
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:
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;
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) {