Skip to content

Commit

Permalink
Move some configuration settings to configure.ac file.
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlopezroche committed Jan 18, 2022
1 parent 2209aff commit f6575ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ AC_DEFINE_UNQUOTED([HELP_COMMAND_STRING], "man 7 ${transformed_manpage_name}", [

AC_DEFINE([_FILE_OFFSET_BITS], [64], [allow fdupes to handle files greater than (2<<31)-1 bytes])

AC_DEFINE([CHUNK_SIZE], [8192], [number of bytes to read per read call])
AC_DEFINE([PARTIAL_MD5_SIZE], [4096], [maximum number of bytes to use when calculating partial hashes])
AC_DEFINE([INPUT_SIZE], [256], [size of command buffer (plain interactive mode only)])

AC_CONFIG_FILES([Makefile])
AC_PROG_CC
AC_OUTPUT
6 changes: 0 additions & 6 deletions fdupes.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ char *program_name;

ordertype_t ordertype = ORDER_MTIME;

#define CHUNK_SIZE 8192

#define INPUT_SIZE 256

#define PARTIAL_MD5_SIZE 4096

#define MD5_DIGEST_LENGTH 16

/*
Expand Down

0 comments on commit f6575ce

Please sign in to comment.