Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308981
b: refs/heads/master
c: 68aecfb
h: refs/heads/master
i:
  308979: ed6bbe4
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed May 29, 2012
1 parent cf967a2 commit 6a07907
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 26d7b99b835294ab21e2a2b4b3bdf04b03b0028d
refs/heads/master: 68aecfb97978fe6730615f92f53c11149e929052
8 changes: 4 additions & 4 deletions trunk/lib/string_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
int string_get_size(u64 size, const enum string_size_units units,
char *buf, int len)
{
const char *units_10[] = { "B", "kB", "MB", "GB", "TB", "PB",
static const char *units_10[] = { "B", "kB", "MB", "GB", "TB", "PB",
"EB", "ZB", "YB", NULL};
const char *units_2[] = {"B", "KiB", "MiB", "GiB", "TiB", "PiB",
static const char *units_2[] = {"B", "KiB", "MiB", "GiB", "TiB", "PiB",
"EiB", "ZiB", "YiB", NULL };
const char **units_str[] = {
static const char **units_str[] = {
[STRING_UNITS_10] = units_10,
[STRING_UNITS_2] = units_2,
};
const unsigned int divisor[] = {
static const unsigned int divisor[] = {
[STRING_UNITS_10] = 1000,
[STRING_UNITS_2] = 1024,
};
Expand Down

0 comments on commit 6a07907

Please sign in to comment.