summaryrefslogtreecommitdiff
path: root/util-linux/fdisk.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-06-12 20:54:54 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-06-12 20:54:54 +0000
commit3ad5d0cbbe3c6debc8d3431fadf973eff04b27bf (patch)
treeea3c3db1efdd618bf819f97d73f93f276f309137 /util-linux/fdisk.c
parentfdcbc4e7095c225a8586dcb96a7a99c2d1007aeb (diff)
downloadbusybox-w32-3ad5d0cbbe3c6debc8d3431fadf973eff04b27bf.tar.gz
busybox-w32-3ad5d0cbbe3c6debc8d3431fadf973eff04b27bf.tar.bz2
busybox-w32-3ad5d0cbbe3c6debc8d3431fadf973eff04b27bf.zip
diff: shrink code (-85 bytes):
function old new delta fiddle_sum 8 - -8 diffreg 2717 2690 -27 prepare 334 284 -50 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/2 up/down: 0/-85) Total: -85 bytes s/ATTRIBUTE_ALWAYS_INLINE/ALWAYS_INLINE/g
Diffstat (limited to 'util-linux/fdisk.c')
-rw-r--r--util-linux/fdisk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index ed5abe956..4ecbadf78 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -402,14 +402,14 @@ set_all_unchanged(void)
402 ptes[i].changed = 0; 402 ptes[i].changed = 0;
403} 403}
404 404
405static ATTRIBUTE_ALWAYS_INLINE void 405static ALWAYS_INLINE void
406set_changed(int i) 406set_changed(int i)
407{ 407{
408 ptes[i].changed = 1; 408 ptes[i].changed = 1;
409} 409}
410#endif /* FEATURE_FDISK_WRITABLE */ 410#endif /* FEATURE_FDISK_WRITABLE */
411 411
412static ATTRIBUTE_ALWAYS_INLINE struct partition * 412static ALWAYS_INLINE struct partition *
413get_part_table(int i) 413get_part_table(int i)
414{ 414{
415 return ptes[i].part_table; 415 return ptes[i].part_table;
@@ -430,7 +430,7 @@ valid_part_table_flag(const char *mbuffer)
430} 430}
431 431
432#if ENABLE_FEATURE_FDISK_WRITABLE 432#if ENABLE_FEATURE_FDISK_WRITABLE
433static ATTRIBUTE_ALWAYS_INLINE void 433static ALWAYS_INLINE void
434write_part_table_flag(char *b) 434write_part_table_flag(char *b)
435{ 435{
436 b[510] = 0x55; 436 b[510] = 0x55;