Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330202
b: refs/heads/master
c: 33e2a42
h: refs/heads/master
v: v3
  • Loading branch information
Hein Tibosch authored and Linus Torvalds committed Oct 5, 2012
1 parent 6ffc8d9 commit ee56876
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 4965f5667f36a95b41cda6638875bc992bd7d18b
refs/heads/master: 33e2a4227ddff7c18921ac175fae3ab0e3ff8a76
9 changes: 6 additions & 3 deletions trunk/lib/decompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include <linux/types.h>
#include <linux/string.h>
#include <linux/init.h>

#ifndef CONFIG_DECOMPRESS_GZIP
# define gunzip NULL
Expand All @@ -31,11 +32,13 @@
# define unlzo NULL
#endif

static const struct compress_format {
struct compress_format {
unsigned char magic[2];
const char *name;
decompress_fn decompressor;
} compressed_formats[] = {
};

static const struct compress_format compressed_formats[] __initdata = {
{ {037, 0213}, "gzip", gunzip },
{ {037, 0236}, "gzip", gunzip },
{ {0x42, 0x5a}, "bzip2", bunzip2 },
Expand All @@ -45,7 +48,7 @@ static const struct compress_format {
{ {0, 0}, NULL, NULL }
};

decompress_fn decompress_method(const unsigned char *inbuf, int len,
decompress_fn __init decompress_method(const unsigned char *inbuf, int len,
const char **name)
{
const struct compress_format *cf;
Expand Down

0 comments on commit ee56876

Please sign in to comment.