Make mc compilable again: decompress_extension added.

This commit is contained in:
Pavel Machek 1998-09-22 11:20:32 +00:00
parent 062e729b03
commit 91953e6309

View File

@ -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)
{