summaryrefslogtreecommitdiffstats
path: root/fdisk/fdisksgilabel.h
diff options
context:
space:
mode:
authorSamuel Thibault2007-10-27 19:27:31 +0200
committerKarel Zak2007-12-03 14:03:47 +0100
commit65fb3668fcdcd44848326f105f306e0b5b607385 (patch)
tree9e43983fbe5c3f679a62e657fb57703af3a202f3 /fdisk/fdisksgilabel.h
parentsetarch: add missing alpha subarchs (diff)
downloadkernel-qcow2-util-linux-65fb3668fcdcd44848326f105f306e0b5b607385.tar.gz
kernel-qcow2-util-linux-65fb3668fcdcd44848326f105f306e0b5b607385.tar.xz
kernel-qcow2-util-linux-65fb3668fcdcd44848326f105f306e0b5b607385.zip
fdisk: non-linux support (use standard uintxy_t instead __uxy)
- #include <linux/types.h> is turned into #include <stdint.h>, much more   portable, and __uxy were turned into uintxy_t. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisk/fdisksgilabel.h')
-rw-r--r--fdisk/fdisksgilabel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fdisk/fdisksgilabel.h b/fdisk/fdisksgilabel.h
index 02b3e9d55..d69616ab8 100644
--- a/fdisk/fdisksgilabel.h
+++ b/fdisk/fdisksgilabel.h
@@ -1,7 +1,7 @@
#ifndef FDISK_SGI_LABEL_H
#define FDISK_SGI_LABEL_H
-#include <linux/types.h> /* for __u32 etc */
+#include <stdint.h>
/*
* Copyright (C) Andreas Neuper, Sep 1998.
* This file may be modified and redistributed under
@@ -99,9 +99,9 @@ typedef struct {
#define SGI_INFO_MAGIC 0x00072959
#define SGI_INFO_MAGIC_SWAPPED 0x59290700
#define SSWAP16(x) (other_endian ? __swap16(x) \
- : (__u16)(x))
+ : (uint16_t)(x))
#define SSWAP32(x) (other_endian ? __swap32(x) \
- : (__u32)(x))
+ : (uint32_t)(x))
/* fdisk.c */
#define sgilabel ((sgi_partition *)MBRbuffer)