From: bluhm Date: Wed, 15 Dec 2021 21:25:55 +0000 (+0000) Subject: Fix whitespace. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cc558b7874f0a6702357d525cdb0be0e146f6fd7;p=openbsd Fix whitespace. --- diff --git a/regress/sys/kern/unixsockets/unfdpassfail.c b/regress/sys/kern/unixsockets/unfdpassfail.c index 49fa0774087..6658cb037b6 100644 --- a/regress/sys/kern/unixsockets/unfdpassfail.c +++ b/regress/sys/kern/unixsockets/unfdpassfail.c @@ -1,4 +1,4 @@ -/* $OpenBSD: unfdpassfail.c,v 1.1 2021/12/09 23:26:48 mvs Exp $ */ +/* $OpenBSD: unfdpassfail.c,v 1.2 2021/12/15 21:25:55 bluhm Exp $ */ /* * Copyright (c) 2021 Vitaliy Makkoveev @@ -67,7 +67,7 @@ int main(int argc, char *argv[]) err(1, "socketpair"); if ((fd = socket(AF_UNIX, SOCK_DGRAM, 0)) < 0) err(1, "open"); - + iov_buf = 0; iov.iov_base = &iov_buf; iov.iov_len = sizeof(iov_buf); diff --git a/regress/sys/kern/unixsockets/ungc.c b/regress/sys/kern/unixsockets/ungc.c index 341d7aa1fd1..6f08c5672f6 100644 --- a/regress/sys/kern/unixsockets/ungc.c +++ b/regress/sys/kern/unixsockets/ungc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ungc.c,v 1.1 2021/12/09 17:42:59 mvs Exp $ */ +/* $OpenBSD: ungc.c,v 1.2 2021/12/15 21:25:55 bluhm Exp $ */ /* * Copyright (c) 2021 Vitaliy Makkoveev @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) while (1) { if (socketpair(AF_UNIX, SOCK_STREAM|O_NONBLOCK, 0, s) < 0) err(1, "socketpair"); - + iov_buf = 0; iov.iov_base = &iov_buf; iov.iov_len = sizeof(iov_buf); diff --git a/regress/sys/kern/unixsockets/unsopassgc.c b/regress/sys/kern/unixsockets/unsopassgc.c index f67ad9f5c9f..7cb6e1c4303 100644 --- a/regress/sys/kern/unixsockets/unsopassgc.c +++ b/regress/sys/kern/unixsockets/unsopassgc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: unsopassgc.c,v 1.1 2021/12/14 16:12:48 mvs Exp $ */ +/* $OpenBSD: unsopassgc.c,v 1.2 2021/12/15 21:25:55 bluhm Exp $ */ /* * Copyright (c) 2021 Vitaliy Makkoveev @@ -19,7 +19,7 @@ /* * Try to beak unix(4) sockets garbage collector and make it to clean * `so_rcv' buffer of alive socket. Successful breakage should produce - * kernel panic. + * kernel panic. */ #include @@ -88,7 +88,7 @@ static struct thr_pass_arg { } *thr_pass_args; static struct thr_gc_arg { - int passfd; + int passfd; } *thr_gc_arg; static void * @@ -168,11 +168,11 @@ thr_recv(void *arg) if(!(cmsgh = CMSG_FIRSTHDR(&msgh))) therrx(1, "bad cmsg header"); if(cmsgh->cmsg_level != SOL_SOCKET) - therrx(1, "bad cmsg level"); + therrx(1, "bad cmsg level"); if(cmsgh->cmsg_type != SCM_RIGHTS) - therrx(1, "bad cmsg type"); + therrx(1, "bad cmsg type"); if(cmsgh->cmsg_len != CMSG_LEN(sizeof(fd) * PASSFD_NUM)) - therrx(1, "bad cmsg length"); + therrx(1, "bad cmsg length"); for (i = 0; i < PASSFD_NUM; ++i) { fd = *((int *)CMSG_DATA(cmsgh) + i);