diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-01-31 23:00:46 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-01-31 23:00:46 +0000 |
commit | bd018b1babf0521b8e740abb6473133c1c4c35d2 (patch) | |
tree | 667cb157a1e97ef11e80da146e513a075e00b1d7 | |
parent | dd19c6990496023fe23fefef8f1798740f7d39c6 (diff) | |
download | busybox-w32-bd018b1babf0521b8e740abb6473133c1c4c35d2.tar.gz busybox-w32-bd018b1babf0521b8e740abb6473133c1c4c35d2.tar.bz2 busybox-w32-bd018b1babf0521b8e740abb6473133c1c4c35d2.zip |
Make old compilers not choke -- define the attribute in the func prototype.
-rw-r--r-- | mkfs_minix.c | 4 | ||||
-rw-r--r-- | util-linux/mkfs_minix.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/mkfs_minix.c b/mkfs_minix.c index a2b6d8a6e..9b40faac6 100644 --- a/mkfs_minix.c +++ b/mkfs_minix.c | |||
@@ -255,7 +255,9 @@ static inline int bit(char * a,unsigned int i) | |||
255 | #define mark_zone(x) (setbit(zone_map,(x)-FIRSTZONE+1)) | 255 | #define mark_zone(x) (setbit(zone_map,(x)-FIRSTZONE+1)) |
256 | #define unmark_zone(x) (clrbit(zone_map,(x)-FIRSTZONE+1)) | 256 | #define unmark_zone(x) (clrbit(zone_map,(x)-FIRSTZONE+1)) |
257 | 257 | ||
258 | static __attribute__ ((noreturn)) void show_usage() | 258 | static void show_usage() __attribute__ ((noreturn)); |
259 | |||
260 | static void show_usage() | ||
259 | { | 261 | { |
260 | usage(mkfs_minix_usage); | 262 | usage(mkfs_minix_usage); |
261 | } | 263 | } |
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c index a2b6d8a6e..9b40faac6 100644 --- a/util-linux/mkfs_minix.c +++ b/util-linux/mkfs_minix.c | |||
@@ -255,7 +255,9 @@ static inline int bit(char * a,unsigned int i) | |||
255 | #define mark_zone(x) (setbit(zone_map,(x)-FIRSTZONE+1)) | 255 | #define mark_zone(x) (setbit(zone_map,(x)-FIRSTZONE+1)) |
256 | #define unmark_zone(x) (clrbit(zone_map,(x)-FIRSTZONE+1)) | 256 | #define unmark_zone(x) (clrbit(zone_map,(x)-FIRSTZONE+1)) |
257 | 257 | ||
258 | static __attribute__ ((noreturn)) void show_usage() | 258 | static void show_usage() __attribute__ ((noreturn)); |
259 | |||
260 | static void show_usage() | ||
259 | { | 261 | { |
260 | usage(mkfs_minix_usage); | 262 | usage(mkfs_minix_usage); |
261 | } | 263 | } |