summaryrefslogtreecommitdiff
path: root/sbin/fdisk
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-07-06 18:19:30 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-07-06 18:19:30 +0000
commit27f9fbf928e82803c1ab9e90464976a2847bf125 (patch)
treee6141c4e13c4e0a5316c7f54e45bcbbda9ddf95a /sbin/fdisk
parent685b314ea46407d7a5c39a1ac3c378963a240dd7 (diff)
Explicit typing
Diffstat (limited to 'sbin/fdisk')
-rw-r--r--sbin/fdisk/fdisk.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c
index 92bb4334d3b..5c9adc04b77 100644
--- a/sbin/fdisk/fdisk.c
+++ b/sbin/fdisk/fdisk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdisk.c,v 1.18 1997/04/17 12:31:46 provos Exp $ */
+/* $OpenBSD: fdisk.c,v 1.19 1997/07/06 18:19:29 niklas Exp $ */
/* $NetBSD: fdisk.c,v 1.11 1995/10/04 23:11:19 ghudson Exp $ */
/*
@@ -28,7 +28,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: fdisk.c,v 1.18 1997/04/17 12:31:46 provos Exp $";
+static char rcsid[] = "$OpenBSD: fdisk.c,v 1.19 1997/07/06 18:19:29 niklas Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -72,7 +72,7 @@ struct mboot {
} mboot;
#define ACTIVE 0x80
-#define BOOT_MAGIC 0xAA55
+#define BOOT_MAGIC (u_int16_t)0xAA55
int dos_cylinders;
int dos_heads;
@@ -271,7 +271,7 @@ print_s0(which)
static struct dos_partition mtpart = { 0 };
-static inline unsigned short
+static inline u_int16_t
getshort(p)
void *p;
{
@@ -283,7 +283,7 @@ getshort(p)
static inline void
putshort(p, l)
void *p;
- unsigned short l;
+ u_int16_t l;
{
unsigned char *cp = p;
@@ -303,7 +303,7 @@ getlong(p)
static inline void
putlong(p, l)
void *p;
- unsigned long l;
+ u_int32_t l;
{
unsigned char *cp = p;