diff options
Diffstat (limited to 'regress/sys/kern/open/open.c')
-rw-r--r-- | regress/sys/kern/open/open.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/regress/sys/kern/open/open.c b/regress/sys/kern/open/open.c index 1088211bfe9..51136e22247 100644 --- a/regress/sys/kern/open/open.c +++ b/regress/sys/kern/open/open.c @@ -1,4 +1,4 @@ -/* $OpenBSD: open.c,v 1.1 2018/07/30 17:27:37 anton Exp $ */ +/* $OpenBSD: open.c,v 1.2 2018/07/30 20:53:42 anton Exp $ */ /* * Copyright (c) 2018 Anton Lindqvist <anton@openbsd.org> * @@ -27,8 +27,9 @@ int main(void) { const char *path = "/dev/bpf"; + int fd; - int fd = open(path, O_WRONLY | O_TRUNC | O_SHLOCK); + fd = open(path, O_WRONLY | O_TRUNC | O_SHLOCK); if (fd == -1) err(1, "open: %s", path); close(fd); |