diff options
author | 2018-07-30 20:53:42 +0000 | |
---|---|---|
committer | 2018-07-30 20:53:42 +0000 | |
commit | ab8c6b02874f08b676f6df91f35eec2feb180ddd (patch) | |
tree | 2a0085dea1caa642136a25bf7329f46723f4f328 | |
parent | If we keep the BIOS framebuffer, stick to the desired framebuffer size (diff) | |
download | wireguard-openbsd-ab8c6b02874f08b676f6df91f35eec2feb180ddd.tar.xz wireguard-openbsd-ab8c6b02874f08b676f6df91f35eec2feb180ddd.zip |
Declare then assign local variable, no binary change.
-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); |