… | |
… | |
202 | { |
202 | { |
203 | int c; |
203 | int c; |
204 | unsigned int blocksize = 64*1024-1; |
204 | unsigned int blocksize = 64*1024-1; |
205 | enum { m_compress, m_decompress } mode = m_compress; |
205 | enum { m_compress, m_decompress } mode = m_compress; |
206 | |
206 | |
207 | if (!strcmp (argv[0] + strlen (argv[0] - 5), "unlzf")) |
|
|
208 | mode = m_decompress; |
|
|
209 | |
|
|
210 | while ((c = getopt (argc, argv, "cdb:h")) != -1) |
207 | while ((c = getopt (argc, argv, "cdb:h")) != -1) |
211 | switch (c) |
208 | switch (c) |
212 | { |
209 | { |
213 | case 'c': |
210 | case 'c': |
214 | mode = m_compress; |
211 | mode = m_compress; |