summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-26 17:10:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-26 17:10:44 +0000
commit9726bb597378e1a9d7b4c54f89586344078445ce (patch)
treea97d2f203cf050f12e80dc3b8886174b176ce24d
parent6c855dab9c201fd807f1d73c7ec45f1959211e0d (diff)
man page is gzip'd, should store as unsigned char array.
-rw-r--r--sbin/fdisk/Makefile6
-rw-r--r--sbin/fdisk/cmd.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/sbin/fdisk/Makefile b/sbin/fdisk/Makefile
index bd711ed7fd9..90f869431a6 100644
--- a/sbin/fdisk/Makefile
+++ b/sbin/fdisk/Makefile
@@ -1,5 +1,5 @@
#
-# $OpenBSD: Makefile,v 1.30 2005/02/16 20:39:38 millert Exp $
+# $OpenBSD: Makefile,v 1.31 2006/04/26 17:10:43 deraadt Exp $
#
# Copyright (c) 1997 Tobias Weingartner
# All rights reserved.
@@ -38,12 +38,12 @@ CLEANFILES+=manual.c
.ifdef NOMAN
manual.c:
- (echo 'const char manpage[] = {'; \
+ (echo 'const unsigned char manpage[] = {'; \
echo 'no manual' | gzip -9c | hexdump -ve '"0x" 1/1 "%02x,"'; \
echo '};'; echo 'const int manpage_sz = sizeof(manpage);') > manual.c
.else
manual.c: fdisk.cat8
- (echo 'const char manpage[] = {'; \
+ (echo 'const unsigned char manpage[] = {'; \
cat fdisk.cat8 | gzip -9c | hexdump -ve '"0x" 1/1 "%02x,"'; \
echo '};'; echo 'const int manpage_sz = sizeof(manpage);') > manual.c
.endif
diff --git a/sbin/fdisk/cmd.c b/sbin/fdisk/cmd.c
index 6d9f6671c2c..d855ad929b5 100644
--- a/sbin/fdisk/cmd.c
+++ b/sbin/fdisk/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.39 2005/03/29 19:35:25 otto Exp $ */
+/* $OpenBSD: cmd.c,v 1.40 2006/04/26 17:10:43 deraadt Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -430,7 +430,7 @@ Xmanual(cmd_t *cmd, disk_t *disk, mbr_t *mbr, mbr_t *tt, int offset)
char *pager = "/usr/bin/less";
char *p;
sig_t opipe;
- extern const char manpage[];
+ extern const unsigned char manpage[];
extern const int manpage_sz;
FILE *f;