summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;