mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 01:44:23 +00:00
VS2010 build: Prepare findnonce.c
Cherry-picked by veox.
This commit is contained in:
parent
8c0e250db2
commit
db352941b2
@ -11,7 +11,6 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <inttypes.h>
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
@ -213,7 +212,7 @@ static void *postcalc_hash(void *userdata)
|
|||||||
|
|
||||||
void postcalc_hash_async(struct thr_info *thr, struct work *work, uint32_t *res)
|
void postcalc_hash_async(struct thr_info *thr, struct work *work, uint32_t *res)
|
||||||
{
|
{
|
||||||
struct pc_data *pcd = malloc(sizeof(struct pc_data));
|
struct pc_data *pcd = (struct pc_data *)malloc(sizeof(struct pc_data));
|
||||||
int buffersize;
|
int buffersize;
|
||||||
|
|
||||||
if (unlikely(!pcd)) {
|
if (unlikely(!pcd)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user