mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 15:27:53 +00:00
Fix warnings in bitforce.c
This commit is contained in:
parent
7d97ed6dd6
commit
6eee0e3874
@ -60,9 +60,14 @@ static void BFgets(char *buf, size_t bufLen, int fd)
|
|||||||
buf[0] = '\0';
|
buf[0] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
#define BFwrite(fd, buf, bufLen) write(fd, buf, bufLen)
|
static void BFwrite(int fd, const void *buf, size_t bufLen)
|
||||||
#define BFclose(fd) close(fd)
|
{
|
||||||
|
ssize_t ret = write(fd, buf, bufLen);
|
||||||
|
if (unlikely(ret != bufLen))
|
||||||
|
quit(1, "BFwrite failed");
|
||||||
|
}
|
||||||
|
|
||||||
|
#define BFclose(fd) close(fd)
|
||||||
|
|
||||||
static bool bitforce_detect_one(const char *devpath)
|
static bool bitforce_detect_one(const char *devpath)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user