Skip to content

Commit 34337a6

Browse files
committed
fix formatting in fast_page_fault_helper.c
Add spaces before parenthesis Suggested-by: Babis Chalios <[email protected]> Signed-off-by: Patrick Roy <[email protected]>
1 parent dd0bf86 commit 34337a6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

resources/overlay/usr/local/bin/fast_page_fault_helper.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,19 @@
2020
int main(int argc, char *const argv[]) {
2121
sigset_t set;
2222
int signal;
23+
void *ptr;
2324

2425
sigemptyset(&set);
25-
if(sigaddset(&set, SIGUSR1) == -1) {
26+
if (sigaddset(&set, SIGUSR1) == -1) {
2627
perror("sigaddset");
2728
return -1;
2829
}
2930

30-
void *ptr = mmap(NULL, MEM_SIZE_MIB, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
31+
ptr = mmap(NULL, MEM_SIZE_MIB, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
3132

3233
memset(ptr, 1, MEM_SIZE_MIB);
3334

34-
if(MAP_FAILED == ptr) {
35+
if (MAP_FAILED == ptr) {
3536
perror("mmap");
3637
return -1;
3738
}

0 commit comments

Comments
 (0)