AC_CHECK_TYPES([mode_t off_t pid_t socklen_t uid_t nlink_t],,,

This commit is contained in:
Roland Illig 2005-07-14 06:31:29 +00:00
parent de5d9b1d40
commit ecfbe13fa3
3 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,9 @@
2005-07-14 Roland Illig <roland.illig@gmx.de>
* util.c (get_compression_type): Use an enumeration instead of
an int for the return type.
* util.h: Likewise.
2005-07-13 Roland Illig <roland.illig@gmx.de>
* view.c: Always call display() before close_error_pipe() to make

View File

@ -894,11 +894,8 @@ char *get_current_wd (char *buffer, int size)
}
#endif /* !USE_VFS */
/* This function returns 0 if the file is not in not compressed by
* one of the supported compressors (gzip, bzip, bzip2). Otherwise,
* the compression type is returned, as defined in util.h
* Warning: this function moves the current file pointer */
int get_compression_type (int fd)
enum compression_type
get_compression_type (int fd)
{
unsigned char magic[4];

View File

@ -181,14 +181,16 @@ int mc_mkstemps(char **pname, const char *prefix, const char *suffix);
char *mc_realpath(const char *path, char resolved_path[]);
enum {
enum compression_type {
COMPRESSION_NONE,
COMPRESSION_GZIP,
COMPRESSION_BZIP,
COMPRESSION_BZIP2
};
int get_compression_type (int fd);
/* Looks for ``magic'' bytes at the start of the VFS file to guess the
* compression type. Side effect: modifies the file position. */
enum compression_type get_compression_type (int fd);
const char *decompress_extension (int type);
/* Hook functions */