projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
608f37d
)
lib: make lib/842 decompress functions static
author
Dan Streetman
<
[email protected]
>
Mon, 11 May 2015 11:22:35 +0000
(07:22 -0400)
committer
Herbert Xu
<
[email protected]
>
Wed, 13 May 2015 02:31:55 +0000
(10:31 +0800)
Make the do_index and do_op functions static.
They are used only internally by the 842 decompression function,
and should be static.
Reported-By: Fengguang Wu <
[email protected]
>
Signed-off-by: Fengguang Wu <
[email protected]
>
Signed-off-by: Dan Streetman <
[email protected]
>
Signed-off-by: Herbert Xu <
[email protected]
>
lib/842/842_decompress.c
patch
|
blob
|
history
diff --git
a/lib/842/842_decompress.c
b/lib/842/842_decompress.c
index 6b2b45aecde3f60e9bab79bfbdafd77a9ae1c463..dbeb0581b879b71b1c5a0d14652137dc70e40adb 100644
(file)
--- a/
lib/842/842_decompress.c
+++ b/
lib/842/842_decompress.c
@@
-214,7
+214,7
@@
static int __do_index(struct sw842_param *p, u8 size, u8 bits, u64 fsize)
return 0;
}
-int do_index(struct sw842_param *p, u8 n)
+
static
int do_index(struct sw842_param *p, u8 n)
{
switch (n) {
case 2:
@@
-228,7
+228,7
@@
int do_index(struct sw842_param *p, u8 n)
}
}
-int do_op(struct sw842_param *p, u8 o)
+
static
int do_op(struct sw842_param *p, u8 o)
{
int i, ret = 0;