aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-16 23:48:13 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-16 23:48:13 +0000
commita597aaddfa76d589d3e1a37b1f1c3401c2decffd (patch)
tree1db4966ffc99ad3c495bd18d6f7040e1515e79d7 /util-linux
parent3469c185e50e7bb672ce33ab5e50da753f0f0e20 (diff)
downloadbusybox-w32-a597aaddfa76d589d3e1a37b1f1c3401c2decffd.tar.gz
busybox-w32-a597aaddfa76d589d3e1a37b1f1c3401c2decffd.tar.bz2
busybox-w32-a597aaddfa76d589d3e1a37b1f1c3401c2decffd.zip
s/extern inline/static ATTRIBUTE_ALWAYS_INLINE/g
xstrtou: disallow leading '+'
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/fdisk.c6
-rw-r--r--util-linux/mkfs_minix.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 2f87f1c60..2af5a41b9 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -252,14 +252,14 @@ set_all_unchanged(void)
252 ptes[i].changed = 0; 252 ptes[i].changed = 0;
253} 253}
254 254
255extern inline void 255static ATTRIBUTE_ALWAYS_INLINE void
256set_changed(int i) 256set_changed(int i)
257{ 257{
258 ptes[i].changed = 1; 258 ptes[i].changed = 1;
259} 259}
260#endif /* CONFIG_FEATURE_FDISK_WRITABLE */ 260#endif /* CONFIG_FEATURE_FDISK_WRITABLE */
261 261
262extern inline struct partition * 262static ATTRIBUTE_ALWAYS_INLINE struct partition *
263get_part_table(int i) 263get_part_table(int i)
264{ 264{
265 return ptes[i].part_table; 265 return ptes[i].part_table;
@@ -281,7 +281,7 @@ valid_part_table_flag(const char *mbuffer)
281} 281}
282 282
283#if ENABLE_FEATURE_FDISK_WRITABLE 283#if ENABLE_FEATURE_FDISK_WRITABLE
284extern inline void 284static ATTRIBUTE_ALWAYS_INLINE void
285write_part_table_flag(char *b) 285write_part_table_flag(char *b)
286{ 286{
287 b[510] = 0x55; 287 b[510] = 0x55;
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c
index af19da68c..263013af9 100644
--- a/util-linux/mkfs_minix.c
+++ b/util-linux/mkfs_minix.c
@@ -183,7 +183,7 @@ static int used_good_blocks;
183static unsigned short good_blocks_table[MAX_GOOD_BLOCKS]; 183static unsigned short good_blocks_table[MAX_GOOD_BLOCKS];
184static unsigned long req_nr_inodes; 184static unsigned long req_nr_inodes;
185 185
186extern inline unsigned div_roundup(unsigned size, unsigned n) 186static ATTRIBUTE_ALWAYS_INLINE unsigned div_roundup(unsigned size, unsigned n)
187{ 187{
188 return (size + n-1) / n; 188 return (size + n-1) / n;
189} 189}