Skip to content

Commit 4e986bb

Browse files
authored
Merge pull request #27 from dsprenkels/trailing-spaces
Remove some trailing spaces
2 parents 1eb6b93 + 8e00774 commit 4e986bb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

randombytes.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static int randombytes_linux_read_entropy_ioctl(int device, int *entropy)
112112

113113
static int randombytes_linux_read_entropy_proc(FILE *stream, int *entropy)
114114
{
115-
int retcode;
115+
int retcode;
116116
do {
117117
rewind(stream);
118118
retcode = fscanf(stream, "%d", entropy);
@@ -176,15 +176,15 @@ static int randombytes_linux_wait_for_entropy(int device)
176176
} else {
177177
return -1; // Unreachable
178178
}
179-
179+
180180
if (retcode != 0) {
181181
// Unrecoverable I/O error
182182
retcode_error = retcode;
183183
break;
184184
}
185185
if (entropy >= bits) {
186186
break;
187-
}
187+
}
188188
} else {
189189
// Unreachable: poll() should only return -1 or 1
190190
retcode_error = -1;
@@ -197,7 +197,7 @@ static int randombytes_linux_wait_for_entropy(int device)
197197
if (strategy == PROC) {
198198
do {
199199
retcode = fclose(proc_file);
200-
} while (retcode == -1 && errno == EINTR);
200+
} while (retcode == -1 && errno == EINTR);
201201
}
202202
if (retcode_error != 0) {
203203
return retcode_error;

randombytes_test.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ int __wrap_ioctl(int fd, int code, int* ret) {
121121
int main(void) {
122122
// Use `#if defined()` to enable/disable tests on a platform. If disabled,
123123
// please still call `SKIP_TEST` to make sure no tests are skipped silently.
124-
124+
125125
RUN_TEST(test_functional)
126126
RUN_TEST(test_empty)
127127
#if defined(__linux__) && defined(SYS_getrandom)

0 commit comments

Comments
 (0)