summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1998-12-10 02:35:55 +0000
committerarchie <archie@FreeBSD.org>1998-12-10 02:35:55 +0000
commit5a134840265fe889f0a252888d8972a2e2ed1703 (patch)
tree4f432910a65abba7b56a61085083ff4945299260 /usr.sbin/config
parentfa3fc53fa465a5bebdbc17d7718277fe157ba640 (diff)
downloadFreeBSD-src-5a134840265fe889f0a252888d8972a2e2ed1703.zip
FreeBSD-src-5a134840265fe889f0a252888d8972a2e2ed1703.tar.gz
Eliminate compiler warning when compiling "config.c" in a kernel.
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c
index 7fd3bfc..0c05358 100644
--- a/usr.sbin/config/main.c
+++ b/usr.sbin/config/main.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id: main.c,v 1.24 1998/05/02 01:57:38 kato Exp $";
+ "$Id: main.c,v 1.25 1998/06/09 14:02:03 dfr Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -358,7 +358,7 @@ configfile()
err(2, "%s", p);
fprintf(fo,"#include \"opt_config.h\"\n");
fprintf(fo,"#ifdef INCLUDE_CONFIG_FILE \n");
- fprintf(fo,"static char *config = \"\\\n");
+ fprintf(fo,"static const char config[] = \"\\\n");
fprintf(fo,"START CONFIG FILE %s\\n\\\n___",PREFIX);
while (EOF != (i=getc(fi))) {
if(i == '\n') {
OpenPOWER on IntegriCloud