summaryrefslogtreecommitdiff
path: root/usr.sbin/config/mkheaders.c
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2003-04-17 15:08:50 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2003-04-17 15:08:50 +0000
commit988b4ff4aaec196c993ecb5234a8350eda8ade72 (patch)
tree8b1e8e7bdb02401faac6165dc1f593a32718e1ad /usr.sbin/config/mkheaders.c
parent3c9449aa21b363b524bc42bf5f02e5198857112d (diff)
Assign the return value of snprintf to an int, not a char. fixes a comparison
is always true error on ppc. ok millert@
Diffstat (limited to 'usr.sbin/config/mkheaders.c')
-rw-r--r--usr.sbin/config/mkheaders.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/config/mkheaders.c b/usr.sbin/config/mkheaders.c
index cfe3606ad38..f1bbc28e3ca 100644
--- a/usr.sbin/config/mkheaders.c
+++ b/usr.sbin/config/mkheaders.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkheaders.c,v 1.15 2002/12/11 16:58:31 deraadt Exp $ */
+/* $OpenBSD: mkheaders.c,v 1.16 2003/04/17 15:08:49 drahn Exp $ */
/* $NetBSD: mkheaders.c,v 1.12 1997/02/02 21:12:34 thorpej Exp $ */
/*
@@ -132,8 +132,8 @@ emitopt(nv)
{
struct nvlist *option;
char new_contents[BUFSIZ], buf[BUFSIZ];
- char fname[BUFSIZ], totlen;
- int nlines;
+ char fname[BUFSIZ];
+ int totlen, nlines;
FILE *fp;
/*