summaryrefslogtreecommitdiff
path: root/lib/libkeynote/keynote-ver.l
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-20 00:28:19 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-20 00:28:19 +0000
commit4d31bb59202842a641c37a1e6c7762935c6669f8 (patch)
tree3fb633c11a1c5603930d955190a27cb2c030bd80 /lib/libkeynote/keynote-ver.l
parent5652cbb6e51a93e6d738cdc845c4a511e1f84943 (diff)
Clean up a condition. No functional change. ok tb@
Diffstat (limited to 'lib/libkeynote/keynote-ver.l')
-rw-r--r--lib/libkeynote/keynote-ver.l6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libkeynote/keynote-ver.l b/lib/libkeynote/keynote-ver.l
index 8f3237448bc..51d15a4db8d 100644
--- a/lib/libkeynote/keynote-ver.l
+++ b/lib/libkeynote/keynote-ver.l
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: keynote-ver.l,v 1.17 2015/11/19 19:48:27 tedu Exp $ */
+/* $OpenBSD: keynote-ver.l,v 1.18 2015/12/20 00:28:18 mmcc Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu)
*
@@ -218,9 +218,7 @@ read_environment(char *filename)
FILE *fp;
int i;
- fp = fopen(filename, "r");
- if (fp == (FILE *) NULL)
- {
+ if ((fp = fopen(filename, "r")) == NULL) {
perror(filename);
return -1;
}