summaryrefslogtreecommitdiff
path: root/distrib/crunch
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-09-07 20:03:14 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-09-07 20:03:14 +0000
commit6e123c7c78e7ba5dcd99090f264770c48a4bd456 (patch)
tree237853fc08f9158185778caed3fae525369191d3 /distrib/crunch
parentc796f3200c5458f8181732ca43b5b8702de29f2a (diff)
oops, fix typo
Diffstat (limited to 'distrib/crunch')
-rw-r--r--distrib/crunch/crunchgen/crunchgen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/distrib/crunch/crunchgen/crunchgen.c b/distrib/crunch/crunchgen/crunchgen.c
index a693f239c35..2872196cfa3 100644
--- a/distrib/crunch/crunchgen/crunchgen.c
+++ b/distrib/crunch/crunchgen/crunchgen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crunchgen.c,v 1.12 1997/09/07 19:35:08 millert Exp $ */
+/* $OpenBSD: crunchgen.c,v 1.13 1997/09/07 20:03:13 millert Exp $ */
/*
* Copyright (c) 1994 University of Maryland
* All Rights Reserved.
@@ -31,9 +31,9 @@
* Generates a Makefile and main C file for a crunched executable,
* from specs given in a .conf file.
*/
+#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include <stdio.h>
#include <ctype.h>
#include <string.h>
@@ -564,7 +564,7 @@ void fillin_program_objs(prog_t *p, char *path)
/* discover the objs from the srcdir Makefile */
snprintf(tempfname, sizeof(tempfname), ".tmp_%sXXXXXXXXXX", confname);
- if ((fd = mkstemp(tempfname) == -1) || (f = fdopen(fd, f, "w") == NULL)) {
+ if ((fd = mkstemp(tempfname) == -1) || (f = fdopen(fd, "w")) == NULL) {
if (fd != -1)
close(fd);
perror(tempfname);