diff options
author | Nils Wallménius <nils@rockbox.org> | 2009-10-17 13:40:42 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2009-10-17 13:40:42 +0000 |
commit | 79f19b939f63a1a965bcc9f90cf9b6c8822620cc (patch) | |
tree | f2b6cd378e30daa15ce03653ae1dd3ded0a6431f /apps/misc.h | |
parent | 0659890804d8443a75b4cc5b91c6aec45821effc (diff) | |
download | rockbox-79f19b939f63a1a965bcc9f90cf9b6c8822620cc.tar.gz rockbox-79f19b939f63a1a965bcc9f90cf9b6c8822620cc.zip |
Const correctness for output_dyn_value and unify some identical constants
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23227 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/misc.h')
-rw-r--r-- | apps/misc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/misc.h b/apps/misc.h index 7e71101ba1..35972301cc 100644 --- a/apps/misc.h +++ b/apps/misc.h | |||
@@ -26,13 +26,16 @@ | |||
26 | #include "config.h" | 26 | #include "config.h" |
27 | #include "system.h" | 27 | #include "system.h" |
28 | 28 | ||
29 | extern const unsigned char * const byte_units[]; | ||
30 | extern const unsigned char * const * const kbyte_units; | ||
31 | |||
29 | /* Format a large-range value for output, using the appropriate unit so that | 32 | /* Format a large-range value for output, using the appropriate unit so that |
30 | * the displayed value is in the range 1 <= display < 1000 (1024 for "binary" | 33 | * the displayed value is in the range 1 <= display < 1000 (1024 for "binary" |
31 | * units) if possible, and 3 significant digits are shown. If a buffer is | 34 | * units) if possible, and 3 significant digits are shown. If a buffer is |
32 | * given, the result is snprintf()'d into that buffer, otherwise the result is | 35 | * given, the result is snprintf()'d into that buffer, otherwise the result is |
33 | * voiced.*/ | 36 | * voiced.*/ |
34 | char *output_dyn_value(char *buf, int buf_size, int value, | 37 | char *output_dyn_value(char *buf, int buf_size, int value, |
35 | const unsigned char **units, bool bin_scale); | 38 | const unsigned char * const *units, bool bin_scale); |
36 | 39 | ||
37 | /* Format time into buf. | 40 | /* Format time into buf. |
38 | * | 41 | * |