artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
141e543
)
Declare then assign local variable, no binary change.
author
anton
<anton@openbsd.org>
Mon, 30 Jul 2018 20:53:42 +0000
(20:53 +0000)
committer
anton
<anton@openbsd.org>
Mon, 30 Jul 2018 20:53:42 +0000
(20:53 +0000)
regress/sys/kern/open/open.c
patch
|
blob
|
history
diff --git
a/regress/sys/kern/open/open.c
b/regress/sys/kern/open/open.c
index
1088211
..
51136e2
100644
(file)
--- 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);