mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Make mc compilable again: decompress_extension added.
This commit is contained in:
parent
062e729b03
commit
91953e6309
13
src/util.c
13
src/util.c
@ -935,6 +935,19 @@ long int is_gunzipable (int fd, int *type)
|
||||
return 0;
|
||||
}
|
||||
|
||||
char *
|
||||
decompress_extension (int type)
|
||||
{
|
||||
switch (type){
|
||||
case ISGUNZIPABLE_GUNZIP: return "#ugz";
|
||||
case ISGUNZIPABLE_BZIP: return "#ubz";
|
||||
case ISGUNZIPABLE_BZIP2: return "#ubz2";
|
||||
}
|
||||
/* Should never reach this place */
|
||||
fprintf (stderr, "Fatal: decompress_extension called with an unknown argument\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
char *
|
||||
decompress_command (int type)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user