Fixed compiler warnings - patch from Rune Magnussen
This commit is contained in:
@@ -279,11 +279,12 @@ int main(int argc, char **argv)
|
|||||||
} else if(!strcmp(argv[xArg], "--multiplier") && xArg+1 < argc) {
|
} else if(!strcmp(argv[xArg], "--multiplier") && xArg+1 < argc) {
|
||||||
xArg++;
|
xArg++;
|
||||||
multiplierAssigned = true;
|
multiplierAssigned = true;
|
||||||
outputMultiplier = atoi(argv[xArg]);
|
int tmpOutputMult = atoi(argv[xArg]);
|
||||||
if(outputMultiplier < 0) {
|
if(tmpOutputMult < 0) {
|
||||||
fputs("Multiplier must be >= 0\n", stderr);
|
fputs("Multiplier must be >= 0\n", stderr);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
outputMultiplier = tmpOutputMult;
|
||||||
} else {
|
} else {
|
||||||
fputs("Usage: infnoise [options]\n"
|
fputs("Usage: infnoise [options]\n"
|
||||||
"Options are:\n"
|
"Options are:\n"
|
||||||
|
|||||||
@@ -64,8 +64,8 @@ void inmWriteEntropyStart(uint32_t bufLen, bool debug) {
|
|||||||
void inmWaitForPoolToHaveRoom(void) {
|
void inmWaitForPoolToHaveRoom(void) {
|
||||||
int ent_count;
|
int ent_count;
|
||||||
struct pollfd pfd = {
|
struct pollfd pfd = {
|
||||||
fd: inmDevRandomFD,
|
.fd = inmDevRandomFD,
|
||||||
events: POLLOUT,
|
.events = POLLOUT,
|
||||||
};
|
};
|
||||||
int64_t timeout_msec;
|
int64_t timeout_msec;
|
||||||
if (ioctl(inmDevRandomFD, RNDGETENTCNT, &ent_count) == 0 && ent_count < inmFillWatermark) {
|
if (ioctl(inmDevRandomFD, RNDGETENTCNT, &ent_count) == 0 && ent_count < inmFillWatermark) {
|
||||||
|
|||||||
Reference in New Issue
Block a user