diff options
Diffstat (limited to 'util-linux/fdisk.c')
-rw-r--r-- | util-linux/fdisk.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index eec82a6be..6edf9c31e 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c | |||
@@ -2,10 +2,7 @@ | |||
2 | * | 2 | * |
3 | * Copyright (C) 1992 A. V. Le Blanc (LeBlanc@mcc.ac.uk) | 3 | * Copyright (C) 1992 A. V. Le Blanc (LeBlanc@mcc.ac.uk) |
4 | * | 4 | * |
5 | * This program is free software. You can redistribute it and/or | 5 | * Licensed under the GPL v1 or later, see the file LICENSE in this tarball. |
6 | * modify it under the terms of the GNU General Public License as | ||
7 | * published by the Free Software Foundation: either version 1 or | ||
8 | * (at your option) any later version. | ||
9 | * | 6 | * |
10 | * Vladimir Oleynik <dzo@simtreas.ru> 2001,2002 Busybox port | 7 | * Vladimir Oleynik <dzo@simtreas.ru> 2001,2002 Busybox port |
11 | */ | 8 | */ |
@@ -200,7 +197,7 @@ struct partition { | |||
200 | unsigned char end_cyl; /* end cylinder */ | 197 | unsigned char end_cyl; /* end cylinder */ |
201 | unsigned char start4[4]; /* starting sector counting from 0 */ | 198 | unsigned char start4[4]; /* starting sector counting from 0 */ |
202 | unsigned char size4[4]; /* nr of sectors in partition */ | 199 | unsigned char size4[4]; /* nr of sectors in partition */ |
203 | } __attribute__((__packed__)); | 200 | } ATTRIBUTE_PACKED; |
204 | 201 | ||
205 | enum failure { | 202 | enum failure { |
206 | ioctl_error, unable_to_open, unable_to_read, unable_to_seek, | 203 | ioctl_error, unable_to_open, unable_to_read, unable_to_seek, |
@@ -224,7 +221,7 @@ static void list_types(const struct systypes *sys); | |||
224 | static uint read_int(uint low, uint dflt, uint high, uint base, char *mesg); | 221 | static uint read_int(uint low, uint dflt, uint high, uint base, char *mesg); |
225 | #endif | 222 | #endif |
226 | static const char *partition_type(unsigned char type); | 223 | static const char *partition_type(unsigned char type); |
227 | static void fdisk_fatal(enum failure why) __attribute__ ((noreturn)); | 224 | static void fdisk_fatal(enum failure why) ATTRIBUTE_NORETURN; |
228 | static void get_geometry(void); | 225 | static void get_geometry(void); |
229 | static int get_boot(enum action what); | 226 | static int get_boot(enum action what); |
230 | 227 | ||