summaryrefslogtreecommitdiff
path: root/fdisk/fdisksunlabel.h
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2007-06-27 23:36:08 +0200
committerKarel Zak <kzak@redhat.com>2007-06-27 23:36:08 +0200
commit024353c9ea8a53da522a512fd2a4029a4aad3da3 (patch)
treef79f564b410ba1598394332e1e5cb43966c066b9 /fdisk/fdisksunlabel.h
parentd99f0140f71cbdce7aae8128e7400bc1cf22fe53 (diff)
downloadutil-linux-old-024353c9ea8a53da522a512fd2a4029a4aad3da3.tar.gz
fdisk: move duplicate stuff from fdisk*label.h to fdisk.h
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisk/fdisksunlabel.h')
-rw-r--r--fdisk/fdisksunlabel.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/fdisk/fdisksunlabel.h b/fdisk/fdisksunlabel.h
index 312bfea0..e322e66e 100644
--- a/fdisk/fdisksunlabel.h
+++ b/fdisk/fdisksunlabel.h
@@ -1,3 +1,6 @@
+#ifndef FDISK_SUN_LABEL_H
+#define FDISK_SUN_LABEL_H
+
#include <linux/types.h> /* for __u16, __u32 */
typedef struct {
@@ -35,19 +38,6 @@ typedef struct {
: (__u16)(x))
#define SSWAP32(x) (other_endian ? __swap32(x) \
: (__u32)(x))
-
-/* fdisk.c */
-extern unsigned char MBRbuffer[MAX_SECTOR_SIZE];
-extern unsigned int heads, cylinders;
-extern unsigned long long sectors;
-extern int show_begin;
-extern int sun_label;
-extern char *partition_type(unsigned char type);
-extern void update_units(void);
-extern char read_chars(char *mesg);
-extern void set_all_unchanged(void);
-extern void set_changed(int);
-
/* fdisksunlabel.c */
#define SUNOS_SWAP 3
#define WHOLE_DISK 5
@@ -72,3 +62,4 @@ extern void sun_set_rspeed(void);
extern void sun_set_pcylcount(void);
extern void toggle_sunflags(int i, unsigned char mask);
+#endif /* FDISK_SUN_LABEL_H */