aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-01-22 22:55:11 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-01-22 22:55:11 +0000
commit992cb48d69edf2d39dd860e116b2c81ef0b57caa (patch)
tree1c9eba853c728b5d734506e1c66c269d96fe46ea /util-linux
parent109a761214fa3176bf09b23b4b3f2cb7da5a6971 (diff)
downloadbusybox-w32-992cb48d69edf2d39dd860e116b2c81ef0b57caa.tar.gz
busybox-w32-992cb48d69edf2d39dd860e116b2c81ef0b57caa.tar.bz2
busybox-w32-992cb48d69edf2d39dd860e116b2c81ef0b57caa.zip
- add platform.h.
- use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@13494 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/fdisk.c9
-rw-r--r--util-linux/fsck_minix.c2
2 files changed, 4 insertions, 7 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
205enum failure { 202enum 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);
224static uint read_int(uint low, uint dflt, uint high, uint base, char *mesg); 221static uint read_int(uint low, uint dflt, uint high, uint base, char *mesg);
225#endif 222#endif
226static const char *partition_type(unsigned char type); 223static const char *partition_type(unsigned char type);
227static void fdisk_fatal(enum failure why) __attribute__ ((noreturn)); 224static void fdisk_fatal(enum failure why) ATTRIBUTE_NORETURN;
228static void get_geometry(void); 225static void get_geometry(void);
229static int get_boot(enum action what); 226static int get_boot(enum action what);
230 227
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index f6d7deaab..1814537c5 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/fsck_minix.c
@@ -269,7 +269,7 @@ static inline int bit(char * a,unsigned int i)
269#define mark_zone(x) (setbit(zone_map,(x)-FIRSTZONE+1),changed=1) 269#define mark_zone(x) (setbit(zone_map,(x)-FIRSTZONE+1),changed=1)
270#define unmark_zone(x) (clrbit(zone_map,(x)-FIRSTZONE+1),changed=1) 270#define unmark_zone(x) (clrbit(zone_map,(x)-FIRSTZONE+1),changed=1)
271 271
272static void leave(int) __attribute__ ((noreturn)); 272static void leave(int) ATTRIBUTE_NORETURN;
273static void leave(int status) 273static void leave(int status)
274{ 274{
275 if (termios_set) 275 if (termios_set)