Skip to content

Commit

Permalink
fix style errors in mkholes.c (openzfs#72)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
  • Loading branch information
ahrens authored Sep 4, 2019
1 parent 502e529 commit 2156c8f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/zfs-tests/cmd/mkholes/mkholes.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ typedef struct segment {
} seg_t;

static int
no_memory(void) {
no_memory(void)
{
(void) fprintf(stderr, "malloc failed\n");
exit(255);
return (0);
Expand Down Expand Up @@ -170,8 +171,8 @@ main(int argc, char *argv[])
}

}
if (fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE,
off, len) < 0) {
if (fallocate(fd, FALLOC_FL_PUNCH_HOLE |
FALLOC_FL_KEEP_SIZE, off, len) < 0) {
perror("punch hole failed");
exit(1);
}
Expand Down

0 comments on commit 2156c8f

Please sign in to comment.