summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/file_1cd.c1
-rw-r--r--src/file_3dm.c1
-rw-r--r--src/file_7z.c1
-rw-r--r--src/file_DB.c1
-rw-r--r--src/file_a.c1
-rw-r--r--src/file_ab.c1
-rw-r--r--src/file_abr.c1
-rw-r--r--src/file_acb.c1
-rw-r--r--src/file_ace.c1
-rw-r--r--src/file_ado.c1
-rw-r--r--src/file_ahn.c1
-rw-r--r--src/file_aif.c1
-rw-r--r--src/file_all.c1
-rw-r--r--src/file_als.c1
-rw-r--r--src/file_amd.c1
-rw-r--r--src/file_amr.c1
-rw-r--r--src/file_apa.c1
-rw-r--r--src/file_ape.c1
-rw-r--r--src/file_apple.c1
-rw-r--r--src/file_ari.c1
-rw-r--r--src/file_arj.c1
-rw-r--r--src/file_asf.c1
-rw-r--r--src/file_asl.c1
-rw-r--r--src/file_asm.c1
-rw-r--r--src/file_atd.c1
-rw-r--r--src/file_au.c1
-rw-r--r--src/file_axx.c1
-rw-r--r--src/file_bac.c1
-rw-r--r--src/file_berkeley.c1
-rw-r--r--src/file_bim.c1
-rw-r--r--src/file_binvox.c1
-rw-r--r--src/file_bkf.c1
-rw-r--r--src/file_bld.c1
-rw-r--r--src/file_bmp.c1
-rw-r--r--src/file_bz2.c1
-rw-r--r--src/file_cab.c1
-rw-r--r--src/file_caf.c1
-rw-r--r--src/file_cam.c1
-rw-r--r--src/file_catdrawing.c1
-rw-r--r--src/file_cdt.c1
-rw-r--r--src/file_chm.c1
-rw-r--r--src/file_class.c1
-rw-r--r--src/file_cm.c1
-rw-r--r--src/file_compress.c1
-rw-r--r--src/file_cow.c1
-rw-r--r--src/file_crw.c1
-rw-r--r--src/file_csh.c1
-rw-r--r--src/file_ctg.c1
-rw-r--r--src/file_cwk.c1
-rw-r--r--src/file_d2s.c1
-rw-r--r--src/file_dad.c1
-rw-r--r--src/file_dar.c1
-rw-r--r--src/file_dat.c1
-rw-r--r--src/file_dbf.c1
-rw-r--r--src/file_dbn.c1
-rw-r--r--src/file_dcm.c1
-rw-r--r--src/file_ddf.c1
-rw-r--r--src/file_dex.c1
-rw-r--r--src/file_dim.c1
-rw-r--r--src/file_dir.c1
-rw-r--r--src/file_djv.c1
-rw-r--r--src/file_dmp.c1
-rw-r--r--src/file_doc.c1
-rw-r--r--src/file_dpx.c1
-rw-r--r--src/file_drw.c1
-rw-r--r--src/file_ds2.c1
-rw-r--r--src/file_dsc.c1
-rw-r--r--src/file_dss.c1
-rw-r--r--src/file_dta.c1
-rw-r--r--src/file_dump.c1
-rw-r--r--src/file_dv.c1
-rw-r--r--src/file_dvr.c1
-rw-r--r--src/file_dwg.c1
-rw-r--r--src/file_dxf.c1
-rw-r--r--src/file_e01.c1
-rw-r--r--src/file_ecryptfs.c1
-rw-r--r--src/file_edb.c1
-rw-r--r--src/file_elf.c1
-rw-r--r--src/file_emf.c1
-rw-r--r--src/file_evt.c1
-rw-r--r--src/file_exe.c1
-rw-r--r--src/file_exs.c1
-rw-r--r--src/file_ext.c1
-rw-r--r--src/file_ext2.c1
-rw-r--r--src/file_fat.c1
-rw-r--r--src/file_fbf.c1
-rw-r--r--src/file_fbk.c1
-rw-r--r--src/file_fcp.c1
-rw-r--r--src/file_fcs.c1
-rw-r--r--src/file_fdb.c1
-rw-r--r--src/file_fds.c1
-rw-r--r--src/file_fh10.c1
-rw-r--r--src/file_fh5.c1
-rw-r--r--src/file_filevault.c1
-rw-r--r--src/file_fits.c1
-rw-r--r--src/file_flac.c1
-rw-r--r--src/file_flp.c1
-rw-r--r--src/file_flv.c1
-rw-r--r--src/file_fob.c1
-rw-r--r--src/file_fp5.c1
-rw-r--r--src/file_fp7.c1
-rw-r--r--src/file_freeway.c1
-rw-r--r--src/file_frm.c1
-rw-r--r--src/file_fs.c1
-rw-r--r--src/file_fwd.c1
-rw-r--r--src/file_gam.c1
-rw-r--r--src/file_gct.c1
-rw-r--r--src/file_gho.c1
-rw-r--r--src/file_gif.c1
-rw-r--r--src/file_gm6.c1
-rw-r--r--src/file_gp5.c1
-rw-r--r--src/file_gpg.c1
-rw-r--r--src/file_gsm.c1
-rw-r--r--src/file_gz.c1
-rw-r--r--src/file_hdf.c1
-rw-r--r--src/file_hds.c1
-rw-r--r--src/file_hfsp.c1
-rw-r--r--src/file_hr9.c1
-rw-r--r--src/file_http.c1
-rw-r--r--src/file_icc.c1
-rw-r--r--src/file_ico.c1
-rw-r--r--src/file_idx.c1
-rw-r--r--src/file_ifo.c1
-rw-r--r--src/file_imb.c1
-rw-r--r--src/file_indd.c1
-rw-r--r--src/file_info.c1
-rw-r--r--src/file_iso.c1
-rw-r--r--src/file_it.c1
-rw-r--r--src/file_itu.c1
-rw-r--r--src/file_jpg.c1
-rw-r--r--src/file_jsonlz4.c1
-rw-r--r--src/file_kdb.c1
-rw-r--r--src/file_kdbx.c1
-rw-r--r--src/file_ldf.c1
-rw-r--r--src/file_lit.c1
-rw-r--r--src/file_lnk.c1
-rw-r--r--src/file_logic.c1
-rw-r--r--src/file_lso.c1
-rw-r--r--src/file_luks.c1
-rw-r--r--src/file_lxo.c1
-rw-r--r--src/file_lzh.c1
-rw-r--r--src/file_lzo.c1
-rw-r--r--src/file_m2ts.c2
-rw-r--r--src/file_mat.c1
-rw-r--r--src/file_max.c1
-rw-r--r--src/file_mb.c1
-rw-r--r--src/file_mcd.c1
-rw-r--r--src/file_mdb.c2
-rw-r--r--src/file_mdf.c1
-rw-r--r--src/file_mfa.c1
-rw-r--r--src/file_mfg.c1
-rw-r--r--src/file_mft.c1
-rw-r--r--src/file_mid.c1
-rw-r--r--src/file_mig.c1
-rw-r--r--src/file_mk5.c1
-rw-r--r--src/file_mkv.c1
-rw-r--r--src/file_mlv.c1
-rw-r--r--src/file_mobi.c1
-rw-r--r--src/file_mov.c1
-rw-r--r--src/file_mp3.c1
-rw-r--r--src/file_mpg.c1
-rw-r--r--src/file_mrw.c1
-rw-r--r--src/file_mus.c1
-rw-r--r--src/file_mxf.c1
-rw-r--r--src/file_myo.c1
-rw-r--r--src/file_mysql.c1
-rw-r--r--src/file_nds.c1
-rw-r--r--src/file_nes.c1
-rw-r--r--src/file_njx.c1
-rw-r--r--src/file_nk2.c1
-rw-r--r--src/file_nsf.c1
-rw-r--r--src/file_oci.c1
-rw-r--r--src/file_ogg.c1
-rw-r--r--src/file_one.c1
-rw-r--r--src/file_orf.c1
-rw-r--r--src/file_paf.c1
-rw-r--r--src/file_pap.c1
-rw-r--r--src/file_par2.c1
-rw-r--r--src/file_pcap.c1
-rw-r--r--src/file_pct.c1
-rw-r--r--src/file_pcx.c1
-rw-r--r--src/file_pdf.c1
-rw-r--r--src/file_pds.c1
-rw-r--r--src/file_pfx.c1
-rw-r--r--src/file_plist.c1
-rw-r--r--src/file_plt.c1
-rw-r--r--src/file_png.c1
-rw-r--r--src/file_pnm.c1
-rw-r--r--src/file_prc.c1
-rw-r--r--src/file_prt.c1
-rw-r--r--src/file_ps.c1
-rw-r--r--src/file_psb.c1
-rw-r--r--src/file_psd.c1
-rw-r--r--src/file_psf.c1
-rw-r--r--src/file_psp.c1
-rw-r--r--src/file_pst.c1
-rw-r--r--src/file_ptb.c1
-rw-r--r--src/file_ptf.c1
-rw-r--r--src/file_pyc.c1
-rw-r--r--src/file_pzf.c1
-rw-r--r--src/file_pzh.c1
-rw-r--r--src/file_qbb.c1
-rw-r--r--src/file_qdf.c1
-rw-r--r--src/file_qkt.c1
-rw-r--r--src/file_qxd.c1
-rw-r--r--src/file_r3d.c1
-rw-r--r--src/file_ra.c1
-rw-r--r--src/file_raf.c1
-rw-r--r--src/file_rar.c1
-rw-r--r--src/file_raw.c1
-rw-r--r--src/file_rdc.c1
-rw-r--r--src/file_reg.c1
-rw-r--r--src/file_res.c1
-rw-r--r--src/file_rfp.c1
-rw-r--r--src/file_riff.c1
-rw-r--r--src/file_rlv.c1
-rw-r--r--src/file_rm.c1
-rw-r--r--src/file_rns.c1
-rw-r--r--src/file_rpm.c1
-rw-r--r--src/file_rw2.c1
-rw-r--r--src/file_rx2.c1
-rw-r--r--src/file_save.c1
-rw-r--r--src/file_ses.c1
-rw-r--r--src/file_sgcta.c1
-rw-r--r--src/file_shn.c1
-rw-r--r--src/file_sib.c1
-rw-r--r--src/file_sig.c1
-rw-r--r--src/file_sit.c1
-rw-r--r--src/file_skd.c1
-rw-r--r--src/file_skp.c1
-rw-r--r--src/file_sp3.c1
-rw-r--r--src/file_spe.c1
-rw-r--r--src/file_spf.c1
-rw-r--r--src/file_spss.c1
-rw-r--r--src/file_sql.c1
-rw-r--r--src/file_sqm.c1
-rw-r--r--src/file_stl.c1
-rw-r--r--src/file_stu.c1
-rw-r--r--src/file_swf.c1
-rw-r--r--src/file_tar.c1
-rw-r--r--src/file_tax.c1
-rw-r--r--src/file_template.c1
-rw-r--r--src/file_tg.c1
-rw-r--r--src/file_tib.c1
-rw-r--r--src/file_tiff.c1
-rw-r--r--src/file_tivo.c1
-rw-r--r--src/file_torrent.c1
-rw-r--r--src/file_tph.c1
-rw-r--r--src/file_tpl.c1
-rw-r--r--src/file_ttf.c1
-rw-r--r--src/file_txt.c2
-rw-r--r--src/file_tz.c1
-rw-r--r--src/file_v2i.c1
-rw-r--r--src/file_vault.c1
-rw-r--r--src/file_vdi.c1
-rw-r--r--src/file_veg.c1
-rw-r--r--src/file_vfb.c1
-rw-r--r--src/file_vmdk.c1
-rw-r--r--src/file_vmg.c1
-rw-r--r--src/file_wallet.c1
-rw-r--r--src/file_wdp.c1
-rw-r--r--src/file_wim.c1
-rw-r--r--src/file_win.c1
-rw-r--r--src/file_wks.c1
-rw-r--r--src/file_wmf.c1
-rw-r--r--src/file_wnk.c1
-rw-r--r--src/file_woff.c1
-rw-r--r--src/file_wpb.c1
-rw-r--r--src/file_wpd.c1
-rw-r--r--src/file_wtv.c1
-rw-r--r--src/file_wv.c1
-rw-r--r--src/file_x3f.c1
-rw-r--r--src/file_xcf.c1
-rw-r--r--src/file_xfi.c1
-rw-r--r--src/file_xfs.c1
-rw-r--r--src/file_xm.c1
-rw-r--r--src/file_xpt.c1
-rw-r--r--src/file_xsv.c1
-rw-r--r--src/file_xv.c1
-rw-r--r--src/file_xz.c1
-rw-r--r--src/file_z2d.c1
-rw-r--r--src/file_zip.c1
-rw-r--r--src/filegen.h3
-rw-r--r--src/phbs.c7
-rw-r--r--src/psearchn.c4
-rw-r--r--src/qphbs.cpp7
-rw-r--r--src/qpsearch.cpp7
287 files changed, 3 insertions, 310 deletions
diff --git a/src/file_1cd.c b/src/file_1cd.c
index 2316134..24a5487 100644
--- a/src/file_1cd.c
+++ b/src/file_1cd.c
@@ -36,7 +36,6 @@ static void register_header_check_1cd(file_stat_t *file_stat);
const file_hint_t file_hint_1cd= {
.extension="1cd",
.description="Russian Finance 1C:Enterprise 8",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_3dm.c b/src/file_3dm.c
index 76677e4..35c8774 100644
--- a/src/file_3dm.c
+++ b/src/file_3dm.c
@@ -35,7 +35,6 @@ static void register_header_check_3dm(file_stat_t *file_stat);
const file_hint_t file_hint_3dm= {
.extension="3dm",
.description="Rhino / openNURBS",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_7z.c b/src/file_7z.c
index 0c671a4..bb9675d 100644
--- a/src/file_7z.c
+++ b/src/file_7z.c
@@ -36,7 +36,6 @@ static void register_header_check_7z(file_stat_t *file_stat);
const file_hint_t file_hint_7z= {
.extension="7z",
.description="7zip archive file",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_DB.c b/src/file_DB.c
index 5ffa215..c9a7a42 100644
--- a/src/file_DB.c
+++ b/src/file_DB.c
@@ -34,7 +34,6 @@ static void register_header_check_DB(file_stat_t *file_stat);
const file_hint_t file_hint_DB= {
.extension="DB",
.description="",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_a.c b/src/file_a.c
index 2af79f9..47a606c 100644
--- a/src/file_a.c
+++ b/src/file_a.c
@@ -35,7 +35,6 @@ static void register_header_check_a(file_stat_t *file_stat);
const file_hint_t file_hint_a= {
.extension="a",
.description="Unix Archive/Debian package",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ab.c b/src/file_ab.c
index 17d16b6..e6e7381 100644
--- a/src/file_ab.c
+++ b/src/file_ab.c
@@ -34,7 +34,6 @@ static void register_header_check_ab(file_stat_t *file_stat);
const file_hint_t file_hint_addressbook= {
.extension="ab",
.description="MAC Address Book",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_abr.c b/src/file_abr.c
index 9b71618..934eab4 100644
--- a/src/file_abr.c
+++ b/src/file_abr.c
@@ -35,7 +35,6 @@ static void register_header_check_abr(file_stat_t *file_stat);
const file_hint_t file_hint_abr= {
.extension="abr",
.description="Adobe Brush",
- .min_header_distance=0,
.max_filesize=100*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_acb.c b/src/file_acb.c
index 5e2bc71..f791fe5 100644
--- a/src/file_acb.c
+++ b/src/file_acb.c
@@ -35,7 +35,6 @@ static void register_header_check_acb(file_stat_t *file_stat);
const file_hint_t file_hint_acb= {
.extension="acb",
.description="Adobe Color Book",
- .min_header_distance=0,
.max_filesize=100*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ace.c b/src/file_ace.c
index 276a28f..737c7e2 100644
--- a/src/file_ace.c
+++ b/src/file_ace.c
@@ -45,7 +45,6 @@ static void register_header_check_ace(file_stat_t *file_stat);
const file_hint_t file_hint_ace= {
.extension="ace",
.description="ACE archive",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ado.c b/src/file_ado.c
index c9855fa..74c9632 100644
--- a/src/file_ado.c
+++ b/src/file_ado.c
@@ -35,7 +35,6 @@ static void register_header_check_ado(file_stat_t *file_stat);
const file_hint_t file_hint_ado= {
.extension="ado",
.description="Adobe Duotone Options",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ahn.c b/src/file_ahn.c
index f67b10b..8112322 100644
--- a/src/file_ahn.c
+++ b/src/file_ahn.c
@@ -35,7 +35,6 @@ static void register_header_check_ahn(file_stat_t *file_stat);
const file_hint_t file_hint_ahn= {
.extension="ahn",
.description="Ahnenblatt",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_aif.c b/src/file_aif.c
index 9faaad7..462f410 100644
--- a/src/file_aif.c
+++ b/src/file_aif.c
@@ -36,7 +36,6 @@ static void register_header_check_aif(file_stat_t *file_stat);
const file_hint_t file_hint_aif= {
.extension="aif",
.description="Audio Interchange File Format",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_all.c b/src/file_all.c
index 36eb308..de7b0ac 100644
--- a/src/file_all.c
+++ b/src/file_all.c
@@ -36,7 +36,6 @@ static int header_check_all(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_all= {
.extension="all",
.description="Cubase Song file: .all",
- .min_header_distance=0,
.max_filesize=50*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_als.c b/src/file_als.c
index 1218805..0304b93 100644
--- a/src/file_als.c
+++ b/src/file_als.c
@@ -35,7 +35,6 @@ static void register_header_check_als(file_stat_t *file_stat);
const file_hint_t file_hint_als= {
.extension="als",
.description="Ableton Live Sets",
- .min_header_distance=0,
.max_filesize=100*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_amd.c b/src/file_amd.c
index a069529..53f6885 100644
--- a/src/file_amd.c
+++ b/src/file_amd.c
@@ -38,7 +38,6 @@ static int header_check_amt(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_amd= {
.extension="amd",
.description="AlphaCAM (amd/amt/atd/att)",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_amr.c b/src/file_amr.c
index 02e0429..a5ec01c 100644
--- a/src/file_amr.c
+++ b/src/file_amr.c
@@ -37,7 +37,6 @@ static int header_check_amr(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_amr= {
.extension="amr",
.description="Adaptive Multi-Rate",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_apa.c b/src/file_apa.c
index e7b001f..fc47582 100644
--- a/src/file_apa.c
+++ b/src/file_apa.c
@@ -37,7 +37,6 @@ static int header_check_apa(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_apa= {
.extension="apa",
.description="APA Style Helper",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ape.c b/src/file_ape.c
index d93bcb7..3391a39 100644
--- a/src/file_ape.c
+++ b/src/file_ape.c
@@ -36,7 +36,6 @@ static int header_check_ape(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_ape= {
.extension="ape",
.description="Monkey's Audio compressed format",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_apple.c b/src/file_apple.c
index 882b3a6..de63f33 100644
--- a/src/file_apple.c
+++ b/src/file_apple.c
@@ -34,7 +34,6 @@ static void register_header_check_apple(file_stat_t *file_stat);
const file_hint_t file_hint_apple= {
.extension="apple",
.description="AppleSingle/AppleDouble",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ari.c b/src/file_ari.c
index 12daf93..fbe99b6 100644
--- a/src/file_ari.c
+++ b/src/file_ari.c
@@ -36,7 +36,6 @@ static void register_header_check_ari(file_stat_t *file_stat);
const file_hint_t file_hint_ari= {
.extension="ari",
.description="ARRI Raw Video",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_arj.c b/src/file_arj.c
index 79c7e0e..9bf2c1e 100644
--- a/src/file_arj.c
+++ b/src/file_arj.c
@@ -36,7 +36,6 @@ static void register_header_check_arj(file_stat_t *file_stat);
const file_hint_t file_hint_arj= {
.extension="arj",
.description="ARJ archive",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_SIZE_32,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_asf.c b/src/file_asf.c
index ef0acc6..8f96d2a 100644
--- a/src/file_asf.c
+++ b/src/file_asf.c
@@ -38,7 +38,6 @@ static int header_check_asf(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_asf= {
.extension="asf",
.description="ASF, WMA, WMV: Advanced Streaming Format used for Audio/Video",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_asl.c b/src/file_asl.c
index 8d69365..7c541c2 100644
--- a/src/file_asl.c
+++ b/src/file_asl.c
@@ -35,7 +35,6 @@ static void register_header_check_asl(file_stat_t *file_stat);
const file_hint_t file_hint_asl= {
.extension="asl",
.description="Adobe Layer Style",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_asm.c b/src/file_asm.c
index dbfe3d9..7d152b0 100644
--- a/src/file_asm.c
+++ b/src/file_asm.c
@@ -39,7 +39,6 @@ static void file_check_asm(file_recovery_t *file_recovery);
const file_hint_t file_hint_asm= {
.extension="asm",
.description="Pro/ENGINEER Assembly",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_atd.c b/src/file_atd.c
index 3a20696..5478354 100644
--- a/src/file_atd.c
+++ b/src/file_atd.c
@@ -35,7 +35,6 @@ static void register_header_check_atd(file_stat_t *file_stat);
const file_hint_t file_hint_atd= {
.extension="atd",
.description="Agelong Tree Database/Abs0luteDatabase",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_au.c b/src/file_au.c
index 38928c1..aa14361 100644
--- a/src/file_au.c
+++ b/src/file_au.c
@@ -36,7 +36,6 @@ static void register_header_check_au(file_stat_t *file_stat);
const file_hint_t file_hint_au= {
.extension="au",
.description="Sun/NeXT audio data",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_axx.c b/src/file_axx.c
index 72d1909..a1277af 100644
--- a/src/file_axx.c
+++ b/src/file_axx.c
@@ -37,7 +37,6 @@ static void register_header_check_axx(file_stat_t *file_stat);
const file_hint_t file_hint_axx= {
.extension="axx",
.description="AxCrypt",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_bac.c b/src/file_bac.c
index 73ed371..e9aada3 100644
--- a/src/file_bac.c
+++ b/src/file_bac.c
@@ -38,7 +38,6 @@ static void register_header_check_bac(file_stat_t *file_stat);
const file_hint_t file_hint_bac= {
.extension="bac",
.description="Bacula backup",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_berkeley.c b/src/file_berkeley.c
index 01b2083..3f5452a 100644
--- a/src/file_berkeley.c
+++ b/src/file_berkeley.c
@@ -35,7 +35,6 @@ static void register_header_check_berkeley_le(file_stat_t *file_stat);
const file_hint_t file_hint_berkeley= {
.extension="db",
.description="Berkeley DB (Little Endian)",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_bim.c b/src/file_bim.c
index 0121b6e..7fbc9b3 100644
--- a/src/file_bim.c
+++ b/src/file_bim.c
@@ -35,7 +35,6 @@ static void register_header_check_bim(file_stat_t *file_stat);
const file_hint_t file_hint_bim= {
.extension="bim",
.description="Broadcast Interface Module",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_binvox.c b/src/file_binvox.c
index fe5fca5..b4ac7d8 100644
--- a/src/file_binvox.c
+++ b/src/file_binvox.c
@@ -35,7 +35,6 @@ static void register_header_check_binvox(file_stat_t *file_stat);
const file_hint_t file_hint_binvox= {
.extension="binvox",
.description="Binvox Voxel File",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_bkf.c b/src/file_bkf.c
index 5b796b0..bebc131 100644
--- a/src/file_bkf.c
+++ b/src/file_bkf.c
@@ -37,7 +37,6 @@ static void register_header_check_bkf(file_stat_t *file_stat);
const file_hint_t file_hint_bkf= {
.extension="bkf",
.description="MS Backup file",
- .min_header_distance=0,
.max_filesize=-1,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_bld.c b/src/file_bld.c
index 2a93bc2..6ccf74c 100644
--- a/src/file_bld.c
+++ b/src/file_bld.c
@@ -36,7 +36,6 @@ static void register_header_check_blend(file_stat_t *file_stat);
const file_hint_t file_hint_blend= {
.extension="blend",
.description="blender",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_bmp.c b/src/file_bmp.c
index 7f4afd6..f20326a 100644
--- a/src/file_bmp.c
+++ b/src/file_bmp.c
@@ -37,7 +37,6 @@ static int header_check_bmp(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_bmp= {
.extension="bmp",
.description="BMP bitmap image",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_bz2.c b/src/file_bz2.c
index 0e73743..05914f2 100644
--- a/src/file_bz2.c
+++ b/src/file_bz2.c
@@ -36,7 +36,6 @@ static int header_check_bz2(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_bz2= {
.extension="bz2",
.description="bzip2 compressed data",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_cab.c b/src/file_cab.c
index 1319522..16db328 100644
--- a/src/file_cab.c
+++ b/src/file_cab.c
@@ -36,7 +36,6 @@ static void register_header_check_cab(file_stat_t *file_stat);
const file_hint_t file_hint_cab= {
.extension="cab",
.description="Microsoft Cabinet archive",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_caf.c b/src/file_caf.c
index fd31a4c..c43f220 100644
--- a/src/file_caf.c
+++ b/src/file_caf.c
@@ -40,7 +40,6 @@ static void register_header_check_caf(file_stat_t *file_stat);
const file_hint_t file_hint_caf= {
.extension="caf",
.description="Core Audio Format",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_cam.c b/src/file_cam.c
index 1e4f54c..b62431d 100644
--- a/src/file_cam.c
+++ b/src/file_cam.c
@@ -35,7 +35,6 @@ static void register_header_check_cam(file_stat_t *file_stat);
const file_hint_t file_hint_cam= {
.extension="cam",
.description="Casio QV Digital Camera Image",
- .min_header_distance=0,
.max_filesize=10*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_catdrawing.c b/src/file_catdrawing.c
index 638f39d..a76b775 100644
--- a/src/file_catdrawing.c
+++ b/src/file_catdrawing.c
@@ -35,7 +35,6 @@ static void register_header_check_catdrawing(file_stat_t *file_stat);
const file_hint_t file_hint_catdrawing= {
.extension="catdrawing",
.description="CATIA",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_cdt.c b/src/file_cdt.c
index 7ce19ab..3a90db5 100644
--- a/src/file_cdt.c
+++ b/src/file_cdt.c
@@ -35,7 +35,6 @@ static void register_header_check_cdt(file_stat_t *file_stat);
const file_hint_t file_hint_cdt= {
.extension="cdt",
.description="cdl/cdt/cdd Concept Draw",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_chm.c b/src/file_chm.c
index e705691..cc4b65a 100644
--- a/src/file_chm.c
+++ b/src/file_chm.c
@@ -35,7 +35,6 @@ static void register_header_check_chm(file_stat_t *file_stat);
const file_hint_t file_hint_chm= {
.extension="chm",
.description="MS Windows HtmlHelp Data",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_class.c b/src/file_class.c
index a886c77..91f446e 100644
--- a/src/file_class.c
+++ b/src/file_class.c
@@ -37,7 +37,6 @@ static int header_check_class(const unsigned char *buffer, const unsigned int bu
const file_hint_t file_hint_class= {
.extension="class",
.description="Java Class",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_cm.c b/src/file_cm.c
index 30fdd7f..0f25a05 100644
--- a/src/file_cm.c
+++ b/src/file_cm.c
@@ -36,7 +36,6 @@ static int header_check_cm(const unsigned char *buffer, const unsigned int buffe
const file_hint_t file_hint_cm= {
.extension="comicdoc",
.description="Comic Life",
- .min_header_distance=0x0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_compress.c b/src/file_compress.c
index b02685a..7722128 100644
--- a/src/file_compress.c
+++ b/src/file_compress.c
@@ -35,7 +35,6 @@ static void register_header_check_compress(file_stat_t *file_stat);
const file_hint_t file_hint_compress= {
.extension="cp_",
.description="MS compress file (SZDD)",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_cow.c b/src/file_cow.c
index 3b694c2..c45069f 100644
--- a/src/file_cow.c
+++ b/src/file_cow.c
@@ -37,7 +37,6 @@ static void register_header_check_cow(file_stat_t *file_stat);
const file_hint_t file_hint_cow= {
.extension="cow",
.description="Qemu Image",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_crw.c b/src/file_crw.c
index 508068a..6db052d 100644
--- a/src/file_crw.c
+++ b/src/file_crw.c
@@ -38,7 +38,6 @@ static void file_check_crw(file_recovery_t *file_recovery);
const file_hint_t file_hint_crw= {
.extension="crw",
.description="Canon Raw picture",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_csh.c b/src/file_csh.c
index f091129..50c20a7 100644
--- a/src/file_csh.c
+++ b/src/file_csh.c
@@ -35,7 +35,6 @@ static void register_header_check_csh(file_stat_t *file_stat);
const file_hint_t file_hint_csh= {
.extension="csh",
.description="Adobe Custom shapes",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ctg.c b/src/file_ctg.c
index 52593e6..991c31b 100644
--- a/src/file_ctg.c
+++ b/src/file_ctg.c
@@ -35,7 +35,6 @@ static void register_header_check_ctg(file_stat_t *file_stat);
const file_hint_t file_hint_ctg= {
.extension="ctg",
.description="Canon catalog",
- .min_header_distance=0,
.max_filesize=4634,
.recover=0,
.enable_by_default=1,
diff --git a/src/file_cwk.c b/src/file_cwk.c
index 4c54f16..cba78e6 100644
--- a/src/file_cwk.c
+++ b/src/file_cwk.c
@@ -38,7 +38,6 @@ static void file_check_cwk(file_recovery_t *file_recovery);
const file_hint_t file_hint_cwk= {
.extension="cwk",
.description="AppleWorks",
- .min_header_distance=0,
.max_filesize=200*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_d2s.c b/src/file_d2s.c
index d31b049..9a3779a 100644
--- a/src/file_d2s.c
+++ b/src/file_d2s.c
@@ -35,7 +35,6 @@ static void register_header_check_d2s(file_stat_t *file_stat);
const file_hint_t file_hint_d2s= {
.extension="d2s",
.description="Diablo II",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_dad.c b/src/file_dad.c
index d8afb61..863b023 100644
--- a/src/file_dad.c
+++ b/src/file_dad.c
@@ -37,7 +37,6 @@ static void register_header_check_dad(file_stat_t *file_stat);
const file_hint_t file_hint_dad= {
.extension="dad",
.description="Micae DVR",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_dar.c b/src/file_dar.c
index b3d0df4..f642493 100644
--- a/src/file_dar.c
+++ b/src/file_dar.c
@@ -35,7 +35,6 @@ static void register_header_check_dar(file_stat_t *file_stat);
const file_hint_t file_hint_dar= {
.extension="dar",
.description="dar archive",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_dat.c b/src/file_dat.c
index 4ff72b4..3618323 100644
--- a/src/file_dat.c
+++ b/src/file_dat.c
@@ -35,7 +35,6 @@ static void register_header_check_dat(file_stat_t *file_stat);
const file_hint_t file_hint_dat= {
.extension="dat",
.description="IE History, Glavna Knjiga account data",
- .min_header_distance=0,
.max_filesize=2*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_dbf.c b/src/file_dbf.c
index c24a3a7..19b30b6 100644
--- a/src/file_dbf.c
+++ b/src/file_dbf.c
@@ -36,7 +36,6 @@ static int header_check_dbf(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_dbf= {
.extension="dbf",
.description="DBase 3, prone to false positive",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=0,
diff --git a/src/file_dbn.c b/src/file_dbn.c
index b9a1f74..44a8575 100644
--- a/src/file_dbn.c
+++ b/src/file_dbn.c
@@ -36,7 +36,6 @@ static void register_header_check_dbn(file_stat_t *file_stat);
const file_hint_t file_hint_dbn= {
.extension="dbn",
.description="DriftBox",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_dcm.c b/src/file_dcm.c
index b519b3c..81a62a7 100644
--- a/src/file_dcm.c
+++ b/src/file_dcm.c
@@ -35,7 +35,6 @@ static void register_header_check_dcm(file_stat_t *file_stat);
const file_hint_t file_hint_dcm= {
.extension="dcm",
.description="Digital Imaging and Communications in Medicine (DICOM)",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ddf.c b/src/file_ddf.c
index b059460..80a87fb 100644
--- a/src/file_ddf.c
+++ b/src/file_ddf.c
@@ -39,7 +39,6 @@ static void register_header_check_ddf(file_stat_t *file_stat);
const file_hint_t file_hint_ddf= {
.extension="ddf",
.description="Didson Data File",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_dex.c b/src/file_dex.c
index 91d2dc9..a79e864 100644
--- a/src/file_dex.c
+++ b/src/file_dex.c
@@ -37,7 +37,6 @@ static void register_header_check_dex(file_stat_t *file_stat);
const file_hint_t file_hint_dex= {
.extension="dex",
.description="Dalvik",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_dim.c b/src/file_dim.c
index 70c41b7..02a3731 100644
--- a/src/file_dim.c
+++ b/src/file_dim.c
@@ -35,7 +35,6 @@ static int header_check_dim(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_dim= {
.extension="diskimage",
.description="SunPCI Disk Image",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_dir.c b/src/file_dir.c
index 956e6e3..09a5b96 100644
--- a/src/file_dir.c
+++ b/src/file_dir.c
@@ -44,7 +44,6 @@ static int header_check_dir(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_dir= {
.extension="fat",
.description="FAT subdirectory",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=0,
.enable_by_default=1,
diff --git a/src/file_djv.c b/src/file_djv.c
index 882780f..3e4300d 100644
--- a/src/file_djv.c
+++ b/src/file_djv.c
@@ -36,7 +36,6 @@ static void register_header_check_djv(file_stat_t *file_stat);
const file_hint_t file_hint_djv= {
.extension="djv",
.description="DjVu",
- .min_header_distance=0,
.max_filesize=200*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_dmp.c b/src/file_dmp.c
index 0532e9c..95aa021 100644
--- a/src/file_dmp.c
+++ b/src/file_dmp.c
@@ -35,7 +35,6 @@ static void register_header_check_dmp(file_stat_t *file_stat);
const file_hint_t file_hint_dmp= {
.extension="dmp",
.description="Oracle Dump (export)",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_doc.c b/src/file_doc.c
index 9f62ff8..574d75c 100644
--- a/src/file_doc.c
+++ b/src/file_doc.c
@@ -54,7 +54,6 @@ static uint32_t *OLE_load_MiniFAT(FILE *IN, const struct OLE_HDR *header, const
const file_hint_t file_hint_doc= {
.extension="doc",
.description="Microsoft Office Document (doc/xls/ppt/vsd/...), 3ds Max, MetaStock, Wilcom ES",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_dpx.c b/src/file_dpx.c
index 89c14aa..155e969 100644
--- a/src/file_dpx.c
+++ b/src/file_dpx.c
@@ -39,7 +39,6 @@ static void register_header_check_dpx(file_stat_t *file_stat);
const file_hint_t file_hint_dpx= {
.extension="dpx",
.description="Cineon image file/SMTPE DPX",
- .min_header_distance=0,
.max_filesize=10*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_drw.c b/src/file_drw.c
index 2a6a311..cbde279 100644
--- a/src/file_drw.c
+++ b/src/file_drw.c
@@ -36,7 +36,6 @@ static void register_header_check_drw(file_stat_t *file_stat);
const file_hint_t file_hint_drw= {
.extension="drw",
.description="Pro/ENGINEER Drawing",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ds2.c b/src/file_ds2.c
index af81016..7757f9e 100644
--- a/src/file_ds2.c
+++ b/src/file_ds2.c
@@ -38,7 +38,6 @@ static void register_header_check_ds2(file_stat_t *file_stat);
const file_hint_t file_hint_ds2= {
.extension="ds2",
.description="Digital Speech Standard v2",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_dsc.c b/src/file_dsc.c
index f515ff8..398ae6e 100644
--- a/src/file_dsc.c
+++ b/src/file_dsc.c
@@ -34,7 +34,6 @@ static void register_header_check_dsc(file_stat_t *file_stat);
const file_hint_t file_hint_dsc= {
.extension="dsc",
.description="Nikon dsc",
- .min_header_distance=0,
.max_filesize=1024*1024,
.recover=0,
.enable_by_default=0,
diff --git a/src/file_dss.c b/src/file_dss.c
index afaa1f8..aa4e45c 100644
--- a/src/file_dss.c
+++ b/src/file_dss.c
@@ -39,7 +39,6 @@ static int header_check_dss(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_dss= {
.extension="dss",
.description="Digital Speech Standard",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_dta.c b/src/file_dta.c
index cda5279..ce52423 100644
--- a/src/file_dta.c
+++ b/src/file_dta.c
@@ -36,7 +36,6 @@ static int header_check_dta(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_dta= {
.extension="dta",
.description="SPSS",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=0,
diff --git a/src/file_dump.c b/src/file_dump.c
index 65c3138..38c77f3 100644
--- a/src/file_dump.c
+++ b/src/file_dump.c
@@ -37,7 +37,6 @@ static void register_header_check_dump(file_stat_t *file_stat);
const file_hint_t file_hint_dump= {
.extension="dump",
.description="Dump/Restore archive",
- .min_header_distance=0,
.max_filesize=(((uint64_t)1<<33)-1),
.recover=1,
.enable_by_default=1,
diff --git a/src/file_dv.c b/src/file_dv.c
index 5edbd4b..ac8de0f 100644
--- a/src/file_dv.c
+++ b/src/file_dv.c
@@ -35,7 +35,6 @@ static void register_header_check_dv(file_stat_t *file_stat);
const file_hint_t file_hint_dv= {
.extension="dv",
.description="DIF Digital Video",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_dvr.c b/src/file_dvr.c
index c63f18b..7b6b415 100644
--- a/src/file_dvr.c
+++ b/src/file_dvr.c
@@ -35,7 +35,6 @@ static void register_header_check_dvr(file_stat_t *file_stat);
const file_hint_t file_hint_dvr= {
.extension="dvr",
.description="RT60",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_dwg.c b/src/file_dwg.c
index 59f434d..abbe06a 100644
--- a/src/file_dwg.c
+++ b/src/file_dwg.c
@@ -35,7 +35,6 @@ static void register_header_check_dwg(file_stat_t *file_stat);
const file_hint_t file_hint_dwg= {
.extension="dwg",
.description="AutoCAD",
- .min_header_distance=0,
.max_filesize=20*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_dxf.c b/src/file_dxf.c
index 7dc4018..fb0ed16 100644
--- a/src/file_dxf.c
+++ b/src/file_dxf.c
@@ -38,7 +38,6 @@ static void file_check_dxf(file_recovery_t *file_recovery);
const file_hint_t file_hint_dxf= {
.extension="dxf",
.description="Drawing Interchange File",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_e01.c b/src/file_e01.c
index eca94a1..ed219a3 100644
--- a/src/file_e01.c
+++ b/src/file_e01.c
@@ -36,7 +36,6 @@ static void register_header_check_e01(file_stat_t *file_stat);
const file_hint_t file_hint_e01= {
.extension="e01",
.description="Encase",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ecryptfs.c b/src/file_ecryptfs.c
index 4faf4eb..a43b9a4 100644
--- a/src/file_ecryptfs.c
+++ b/src/file_ecryptfs.c
@@ -37,7 +37,6 @@ static int header_check_ecryptfs(const unsigned char *buffer, const unsigned int
const file_hint_t file_hint_ecryptfs= {
.extension="eCryptfs",
.description="Encrypted file by eCryptfs",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_edb.c b/src/file_edb.c
index ce3ace0..9224e19 100644
--- a/src/file_edb.c
+++ b/src/file_edb.c
@@ -36,7 +36,6 @@ static void register_header_check_edb(file_stat_t *file_stat);
const file_hint_t file_hint_edb= {
.extension="edb",
.description="Exchange Database",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_elf.c b/src/file_elf.c
index c765054..f9ff9a0 100644
--- a/src/file_elf.c
+++ b/src/file_elf.c
@@ -36,7 +36,6 @@ static void register_header_check_elf(file_stat_t *file_stat);
const file_hint_t file_hint_elf= {
.extension="elf",
.description="Executable and Linking Format",
- .min_header_distance=0,
.max_filesize=10*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_emf.c b/src/file_emf.c
index e23b6b2..db02070 100644
--- a/src/file_emf.c
+++ b/src/file_emf.c
@@ -38,7 +38,6 @@ static data_check_t data_check_emf(const unsigned char *buffer, const unsigned i
const file_hint_t file_hint_emf= {
.extension="emf",
.description="Windows Enhanced MetaFile",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_evt.c b/src/file_evt.c
index 080e3be..6eb621f 100644
--- a/src/file_evt.c
+++ b/src/file_evt.c
@@ -39,7 +39,6 @@ static data_check_t data_check_evt(const unsigned char *buffer, const unsigned i
const file_hint_t file_hint_evt= {
.extension="evt",
.description="Windows Event Log",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_exe.c b/src/file_exe.c
index ccade72..896a395 100644
--- a/src/file_exe.c
+++ b/src/file_exe.c
@@ -43,7 +43,6 @@ static void file_rename_pe_exe(file_recovery_t *file_recovery);
const file_hint_t file_hint_exe= {
.extension="exe",
.description="MS Windows executable",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_exs.c b/src/file_exs.c
index 0b1cd26..b896f97 100644
--- a/src/file_exs.c
+++ b/src/file_exs.c
@@ -35,7 +35,6 @@ static void register_header_check_exs(file_stat_t *file_stat);
const file_hint_t file_hint_exs= {
.extension="exs",
.description="Apple Logic",
- .min_header_distance=0,
.max_filesize=1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ext.c b/src/file_ext.c
index da2a296..b131fc7 100644
--- a/src/file_ext.c
+++ b/src/file_ext.c
@@ -38,7 +38,6 @@ static void register_header_check_ext2_sb(file_stat_t *file_stat);
const file_hint_t file_hint_ext2_sb= {
.extension="ext",
.description="ext2/ext3/ext4 Superblock",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=0,
.enable_by_default=1,
diff --git a/src/file_ext2.c b/src/file_ext2.c
index 93522fe..0b6f050 100644
--- a/src/file_ext2.c
+++ b/src/file_ext2.c
@@ -39,7 +39,6 @@ static int header_check_ext2_fs(const unsigned char *buffer, const unsigned int
const file_hint_t file_hint_ext2_fs= {
.extension="ext",
.description="ext2/ext3/ext4 Filesystem",
- .min_header_distance=0,
.max_filesize=0,
.recover=1,
.enable_by_default=0,
diff --git a/src/file_fat.c b/src/file_fat.c
index 1f2926a..2904129 100644
--- a/src/file_fat.c
+++ b/src/file_fat.c
@@ -44,7 +44,6 @@ static int header_check_fat(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_fat= {
.extension="fat",
.description="FAT",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=0,
diff --git a/src/file_fbf.c b/src/file_fbf.c
index ec0e38c..31c5747 100644
--- a/src/file_fbf.c
+++ b/src/file_fbf.c
@@ -35,7 +35,6 @@ static void register_header_check_fbf(file_stat_t *file_stat);
const file_hint_t file_hint_fbf= {
.extension="fbf",
.description="SymBackup",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_fbk.c b/src/file_fbk.c
index a58cac2..6efd490 100644
--- a/src/file_fbk.c
+++ b/src/file_fbk.c
@@ -35,7 +35,6 @@ static void register_header_check_fbk(file_stat_t *file_stat);
const file_hint_t file_hint_fbk= {
.extension="fbk",
.description="Microsoft Dynamics NAV (MS Navision)",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_fcp.c b/src/file_fcp.c
index 8876c2f..8d71e89 100644
--- a/src/file_fcp.c
+++ b/src/file_fcp.c
@@ -34,7 +34,6 @@ static void register_header_check_fcp(file_stat_t *file_stat);
const file_hint_t file_hint_fcp= {
.extension="fcp",
.description="Final Cut Pro",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_fcs.c b/src/file_fcs.c
index 40d090a..b1bfc96 100644
--- a/src/file_fcs.c
+++ b/src/file_fcs.c
@@ -37,7 +37,6 @@ static int header_check_fcs(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_fcs= {
.extension="fcs",
.description="Flow Cytometry Standard 3.0",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_fdb.c b/src/file_fdb.c
index 5922342..611e0ba 100644
--- a/src/file_fdb.c
+++ b/src/file_fdb.c
@@ -35,7 +35,6 @@ static void register_header_check_fdb(file_stat_t *file_stat);
const file_hint_t file_hint_fdb= {
.extension="fdb",
.description="Microsoft Dynamics NAV (MS Navision)",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_fds.c b/src/file_fds.c
index 8c04c85..0217fb6 100644
--- a/src/file_fds.c
+++ b/src/file_fds.c
@@ -37,7 +37,6 @@ static int header_check_fds(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_fds= {
.extension="fds",
.description="fwNES Disk Image (with header)",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=0,
diff --git a/src/file_fh10.c b/src/file_fh10.c
index abd6c08..f742f68 100644
--- a/src/file_fh10.c
+++ b/src/file_fh10.c
@@ -37,7 +37,6 @@ static void register_header_check_fh10(file_stat_t *file_stat);
const file_hint_t file_hint_fh10= {
.extension="fh10",
.description="Macromedia Freehand 10",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_fh5.c b/src/file_fh5.c
index 72bd237..c322694 100644
--- a/src/file_fh5.c
+++ b/src/file_fh5.c
@@ -44,7 +44,6 @@ static void register_header_check_fh5(file_stat_t *file_stat);
const file_hint_t file_hint_fh5= {
.extension="fh5",
.description="Macromedia Freehand 5",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_filevault.c b/src/file_filevault.c
index c5de174..b4bb498 100644
--- a/src/file_filevault.c
+++ b/src/file_filevault.c
@@ -36,7 +36,6 @@ static int header_check_filevault(const unsigned char *buffer, const unsigned in
const file_hint_t file_hint_filevault= {
.extension="sparseimage",
.description="Filevault",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_fits.c b/src/file_fits.c
index dde3fa2..ec67aea 100644
--- a/src/file_fits.c
+++ b/src/file_fits.c
@@ -42,7 +42,6 @@ static int header_check_fits(const unsigned char *buffer, const unsigned int buf
const file_hint_t file_hint_fits= {
.extension="fits",
.description="Flexible Image Transport System",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_flac.c b/src/file_flac.c
index e906ee7..7727335 100644
--- a/src/file_flac.c
+++ b/src/file_flac.c
@@ -37,7 +37,6 @@ static void register_header_check_flac(file_stat_t *file_stat);
const file_hint_t file_hint_flac= {
.extension="flac",
.description="FLAC audio",
- .min_header_distance=0,
.max_filesize=(uint64_t)1500*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_flp.c b/src/file_flp.c
index 4828925..b67fd52 100644
--- a/src/file_flp.c
+++ b/src/file_flp.c
@@ -37,7 +37,6 @@ static int header_check_flp(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_flp= {
.extension="flp",
.description="Fruity Loop",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_flv.c b/src/file_flv.c
index 091b477..93a211a 100644
--- a/src/file_flv.c
+++ b/src/file_flv.c
@@ -37,7 +37,6 @@ static void register_header_check_flv(file_stat_t *file_stat);
const file_hint_t file_hint_flv= {
.extension="flv",
.description="Macromedia",
- .min_header_distance=0,
.max_filesize=200*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_fob.c b/src/file_fob.c
index fbe172b..c96f1bc 100644
--- a/src/file_fob.c
+++ b/src/file_fob.c
@@ -37,7 +37,6 @@ static int header_check_fob(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_fob= {
.extension="fob",
.description="Microsoft Dynamics NAV (MS Navision)",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_fp5.c b/src/file_fp5.c
index ae8a7b3..5c762bc 100644
--- a/src/file_fp5.c
+++ b/src/file_fp5.c
@@ -34,7 +34,6 @@ static void register_header_check_fp5(file_stat_t *file_stat);
const file_hint_t file_hint_fp5= {
.extension="fp5",
.description="File Maker Pro",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_fp7.c b/src/file_fp7.c
index f4da463..c82763c 100644
--- a/src/file_fp7.c
+++ b/src/file_fp7.c
@@ -35,7 +35,6 @@ static int header_check_fp7(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_fp7= {
.extension="fp7",
.description="File Maker Pro",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_freeway.c b/src/file_freeway.c
index 3711771..bdbb419 100644
--- a/src/file_freeway.c
+++ b/src/file_freeway.c
@@ -35,7 +35,6 @@ static void register_header_check_freeway(file_stat_t *file_stat);
const file_hint_t file_hint_freeway= {
.extension="freeway",
.description="Freeway 5 Pro",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_frm.c b/src/file_frm.c
index c6baafb..3f331d4 100644
--- a/src/file_frm.c
+++ b/src/file_frm.c
@@ -39,7 +39,6 @@ static void file_check_frm(file_recovery_t *file_recovery);
const file_hint_t file_hint_frm= {
.extension="frm",
.description="Pro/ENGINEER Drawing Form",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_fs.c b/src/file_fs.c
index 1df8f73..f9c6cbb 100644
--- a/src/file_fs.c
+++ b/src/file_fs.c
@@ -39,7 +39,6 @@ static int header_check_fs(const unsigned char *buffer, const unsigned int buffe
const file_hint_t file_hint_fs= {
.extension="fs",
.description="Zope",
- .min_header_distance=0,
.max_filesize=200*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_fwd.c b/src/file_fwd.c
index 5baa239..86c0ad8 100644
--- a/src/file_fwd.c
+++ b/src/file_fwd.c
@@ -35,7 +35,6 @@ static void register_header_check_fwd(file_stat_t *file_stat);
const file_hint_t file_hint_fwd= {
.extension="fwd",
.description="FRWD Sports Computer",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_gam.c b/src/file_gam.c
index 58c16d5..95b9491 100644
--- a/src/file_gam.c
+++ b/src/file_gam.c
@@ -35,7 +35,6 @@ static void register_header_check_gam(file_stat_t *file_stat);
const file_hint_t file_hint_gam= {
.extension="gam",
.description="Games Factory",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_gct.c b/src/file_gct.c
index 21e34a1..fd76bb9 100644
--- a/src/file_gct.c
+++ b/src/file_gct.c
@@ -35,7 +35,6 @@ static void register_header_check_gct(file_stat_t *file_stat);
const file_hint_t file_hint_gct= {
.extension="gct",
.description="XFI Electronic Fuel Injection Systems",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_gho.c b/src/file_gho.c
index 9c94609..cdd0de3 100644
--- a/src/file_gho.c
+++ b/src/file_gho.c
@@ -35,7 +35,6 @@ static void register_header_check_gho(file_stat_t *file_stat);
const file_hint_t file_hint_gho= {
.extension="gho",
.description="Ghost",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_gif.c b/src/file_gif.c
index eaa0772..d14e05a 100644
--- a/src/file_gif.c
+++ b/src/file_gif.c
@@ -46,7 +46,6 @@ static data_check_t data_check_gif2(const unsigned char *buffer, const unsigned
const file_hint_t file_hint_gif= {
.extension="gif",
.description="Graphic Interchange Format",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_gm6.c b/src/file_gm6.c
index fc30e29..1a01b8c 100644
--- a/src/file_gm6.c
+++ b/src/file_gm6.c
@@ -35,7 +35,6 @@ static void register_header_check_gm6(file_stat_t *file_stat);
const file_hint_t file_hint_gm6= {
.extension="gm6",
.description="Game Maker",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_gp5.c b/src/file_gp5.c
index 66908e9..651a751 100644
--- a/src/file_gp5.c
+++ b/src/file_gp5.c
@@ -35,7 +35,6 @@ static void register_header_check_gp5(file_stat_t *file_stat);
const file_hint_t file_hint_gp5= {
.extension="gp5",
.description="Guitar Pro 5",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_gpg.c b/src/file_gpg.c
index 154992e..12c6386 100644
--- a/src/file_gpg.c
+++ b/src/file_gpg.c
@@ -46,7 +46,6 @@ static int header_check_gpg(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_gpg= {
.extension="gpg",
.description="OpenPGP/GPG (Partial support)",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_gsm.c b/src/file_gsm.c
index 930ba91..d163550 100644
--- a/src/file_gsm.c
+++ b/src/file_gsm.c
@@ -38,7 +38,6 @@ static void register_header_check_gsm(file_stat_t *file_stat);
const file_hint_t file_hint_gsm= {
.extension="gsm",
.description="Group Speciale Mobile GSM 06.10",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=0,
diff --git a/src/file_gz.c b/src/file_gz.c
index a3f79c8..ec755cf 100644
--- a/src/file_gz.c
+++ b/src/file_gz.c
@@ -41,7 +41,6 @@ static void file_rename_gz(file_recovery_t *file_recovery);
const file_hint_t file_hint_gz= {
.extension="gz",
.description="gzip compressed data",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_hdf.c b/src/file_hdf.c
index e5746de..5c64e43 100644
--- a/src/file_hdf.c
+++ b/src/file_hdf.c
@@ -48,7 +48,6 @@ static void register_header_check_hdf(file_stat_t *file_stat);
const file_hint_t file_hint_hdf= {
.extension="hdf",
.description="Hierarchical Data Format 4",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_SIZE_32,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_hds.c b/src/file_hds.c
index ee12762..92664d2 100644
--- a/src/file_hds.c
+++ b/src/file_hds.c
@@ -35,7 +35,6 @@ static void register_header_check_hds(file_stat_t *file_stat);
const file_hint_t file_hint_hds= {
.extension="hds",
.description="Parallels disk image",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_hfsp.c b/src/file_hfsp.c
index 5d6fdd4..8ed2504 100644
--- a/src/file_hfsp.c
+++ b/src/file_hfsp.c
@@ -37,7 +37,6 @@ static void register_header_check_hfsp(file_stat_t *file_stat);
const file_hint_t file_hint_hfsp= {
.extension="hfsp",
.description="HFS+/HFSX",
- .min_header_distance=0,
.max_filesize=2048,
.recover=0,
.enable_by_default=1,
diff --git a/src/file_hr9.c b/src/file_hr9.c
index 9518201..08f5bf3 100644
--- a/src/file_hr9.c
+++ b/src/file_hr9.c
@@ -34,7 +34,6 @@ static void register_header_check_hr9(file_stat_t *file_stat);
const file_hint_t file_hint_hr9= {
.extension="hr9",
.description="Heredis - Genealogy",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_http.c b/src/file_http.c
index 03fcfc0..33e63fa 100644
--- a/src/file_http.c
+++ b/src/file_http.c
@@ -35,7 +35,6 @@ static void register_header_check_http(file_stat_t *file_stat);
const file_hint_t file_hint_http= {
.extension="http",
.description="HTTP Cache",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=0,
diff --git a/src/file_icc.c b/src/file_icc.c
index 99bc67d..9d22646 100644
--- a/src/file_icc.c
+++ b/src/file_icc.c
@@ -34,7 +34,6 @@ static void register_header_check_icc(file_stat_t *file_stat);
const file_hint_t file_hint_icc= {
.extension="icc",
.description="Color profiles",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ico.c b/src/file_ico.c
index 0b10044..c7e054e 100644
--- a/src/file_ico.c
+++ b/src/file_ico.c
@@ -37,7 +37,6 @@ static int header_check_ico(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_ico= {
.extension="ico",
.description="Windows Icon",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_idx.c b/src/file_idx.c
index 83a2c53..66f9cee 100644
--- a/src/file_idx.c
+++ b/src/file_idx.c
@@ -35,7 +35,6 @@ static void register_header_check_idx(file_stat_t *file_stat);
const file_hint_t file_hint_idx= {
.extension="idx",
.description="RT60",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ifo.c b/src/file_ifo.c
index 69f42e8..a55ec66 100644
--- a/src/file_ifo.c
+++ b/src/file_ifo.c
@@ -36,7 +36,6 @@ static void register_header_check_ifo(file_stat_t *file_stat);
const file_hint_t file_hint_ifo= {
.extension="ifo",
.description="DVD Video manager or title set",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_imb.c b/src/file_imb.c
index 76b4fc0..d21be56 100644
--- a/src/file_imb.c
+++ b/src/file_imb.c
@@ -35,7 +35,6 @@ static void register_header_check_imb(file_stat_t *file_stat);
const file_hint_t file_hint_imb= {
.extension="imb",
.description="Incredimail",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_indd.c b/src/file_indd.c
index 9c624cb..5f3ae24 100644
--- a/src/file_indd.c
+++ b/src/file_indd.c
@@ -46,7 +46,6 @@ static void file_check_indd(file_recovery_t *file_recovery);
const file_hint_t file_hint_indd= {
.extension="indd",
.description="InDesign File",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_info.c b/src/file_info.c
index 239ef85..1b4d3e9 100644
--- a/src/file_info.c
+++ b/src/file_info.c
@@ -35,7 +35,6 @@ static void register_header_check_info(file_stat_t *file_stat);
const file_hint_t file_hint_info= {
.extension="info",
.description="ZoomBrowser Thumbnail info",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_iso.c b/src/file_iso.c
index c9df0d3..0483809 100644
--- a/src/file_iso.c
+++ b/src/file_iso.c
@@ -37,7 +37,6 @@ static int header_check_db(const unsigned char *buffer, const unsigned int buffe
const file_hint_t file_hint_iso= {
.extension="iso",
.description="ISO",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_it.c b/src/file_it.c
index 1782c7a..3f8925f 100644
--- a/src/file_it.c
+++ b/src/file_it.c
@@ -35,7 +35,6 @@ static void register_header_check_it(file_stat_t *file_stat);
const file_hint_t file_hint_it= {
.extension="it",
.description="Impulse Tracker",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_itu.c b/src/file_itu.c
index b6d564b..2ef6ae0 100644
--- a/src/file_itu.c
+++ b/src/file_itu.c
@@ -35,7 +35,6 @@ static void register_header_check_itunes(file_stat_t *file_stat);
const file_hint_t file_hint_itunes= {
.extension="itu",
.description="iTunes",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_jpg.c b/src/file_jpg.c
index 63565cb..549c69b 100644
--- a/src/file_jpg.c
+++ b/src/file_jpg.c
@@ -72,7 +72,6 @@ static int jpg_check_dht(const unsigned char *buffer, const unsigned int buffer_
const file_hint_t file_hint_jpg= {
.extension="jpg",
.description="JPG picture",
- .min_header_distance=0,
.max_filesize=50*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_jsonlz4.c b/src/file_jsonlz4.c
index 51f993c..7dc960f 100644
--- a/src/file_jsonlz4.c
+++ b/src/file_jsonlz4.c
@@ -36,7 +36,6 @@ static void register_header_check_jsonlz4(file_stat_t *file_stat);
const file_hint_t file_hint_jsonlz4= {
.extension="jsonlz4",
.description="Mozilla bookmarks",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_SIZE_32,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_kdb.c b/src/file_kdb.c
index 0eac1f6..5f07b82 100644
--- a/src/file_kdb.c
+++ b/src/file_kdb.c
@@ -35,7 +35,6 @@ static void register_header_check_kdb(file_stat_t *file_stat);
const file_hint_t file_hint_kdb= {
.extension="kdb",
.description="KeePassX",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_kdbx.c b/src/file_kdbx.c
index 99c084d..c47e3ca 100644
--- a/src/file_kdbx.c
+++ b/src/file_kdbx.c
@@ -35,7 +35,6 @@ static void register_header_check_kdbx(file_stat_t *file_stat);
const file_hint_t file_hint_kdbx= {
.extension="kdbx",
.description="KeePassX",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ldf.c b/src/file_ldf.c
index ee6815a..e3acfe5 100644
--- a/src/file_ldf.c
+++ b/src/file_ldf.c
@@ -37,7 +37,6 @@ static int header_check_ldf(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_ldf= {
.extension="ldf",
.description="Microsoft SQL Server Log Data File",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_lit.c b/src/file_lit.c
index ca66bdb..e0db1ab 100644
--- a/src/file_lit.c
+++ b/src/file_lit.c
@@ -35,7 +35,6 @@ static void register_header_check_lit(file_stat_t *file_stat);
const file_hint_t file_hint_lit= {
.extension="lit",
.description="Microsoft ITOL/ITLS",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_lnk.c b/src/file_lnk.c
index a5c698e..fc4fabd 100644
--- a/src/file_lnk.c
+++ b/src/file_lnk.c
@@ -40,7 +40,6 @@ static int header_check_lnk(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_lnk= {
.extension="lnk",
.description="MS Windows Link",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_logic.c b/src/file_logic.c
index ac3bc5a..ab0c663 100644
--- a/src/file_logic.c
+++ b/src/file_logic.c
@@ -35,7 +35,6 @@ static void register_header_check_logic(file_stat_t *file_stat);
const file_hint_t file_hint_logic= {
.extension="logic",
.description="Apple Logic Studio",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_lso.c b/src/file_lso.c
index 0216672..2aac251 100644
--- a/src/file_lso.c
+++ b/src/file_lso.c
@@ -35,7 +35,6 @@ static void register_header_check_lso(file_stat_t *file_stat);
const file_hint_t file_hint_lso= {
.extension="lso",
.description="Logic Platinum File",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_luks.c b/src/file_luks.c
index b6ddca0..01db685 100644
--- a/src/file_luks.c
+++ b/src/file_luks.c
@@ -38,7 +38,6 @@ static void register_header_check_luks(file_stat_t *file_stat);
const file_hint_t file_hint_luks= {
.extension="luks",
.description="LUKS encrypted file",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_lxo.c b/src/file_lxo.c
index 71b4794..2360e5d 100644
--- a/src/file_lxo.c
+++ b/src/file_lxo.c
@@ -36,7 +36,6 @@ static void register_header_check_lxo(file_stat_t *file_stat);
const file_hint_t file_hint_lxo= {
.extension="lxo",
.description="lxo/lwo 3d model",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_lzh.c b/src/file_lzh.c
index 41a93c1..b4acee4 100644
--- a/src/file_lzh.c
+++ b/src/file_lzh.c
@@ -37,7 +37,6 @@ static void register_header_check_lzh(file_stat_t *file_stat);
const file_hint_t file_hint_lzh= {
.extension="lzh",
.description="lzh/LArc archive",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_lzo.c b/src/file_lzo.c
index 4aa5a6e..7b17f56 100644
--- a/src/file_lzo.c
+++ b/src/file_lzo.c
@@ -35,7 +35,6 @@ static void register_header_check_lzo(file_stat_t *file_stat);
const file_hint_t file_hint_lzo= {
.extension="lzo",
.description="lzo archive",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_m2ts.c b/src/file_m2ts.c
index e1e8f47..dfba92e 100644
--- a/src/file_m2ts.c
+++ b/src/file_m2ts.c
@@ -42,7 +42,6 @@ static void register_header_check_ts(file_stat_t *file_stat);
const file_hint_t file_hint_m2ts= {
.extension="m2ts",
.description="Blu-ray MPEG-2",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
@@ -52,7 +51,6 @@ const file_hint_t file_hint_m2ts= {
const file_hint_t file_hint_ts= {
.extension="ts",
.description="MPEG transport stream (TS)",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=0,
diff --git a/src/file_mat.c b/src/file_mat.c
index 93bb002..4e27306 100644
--- a/src/file_mat.c
+++ b/src/file_mat.c
@@ -35,7 +35,6 @@ static void register_header_check_mat(file_stat_t *file_stat);
const file_hint_t file_hint_mat= {
.extension="mat",
.description="Matlab",
- .min_header_distance=0,
.max_filesize=10*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_max.c b/src/file_max.c
index c4c87c8..5d2dd3b 100644
--- a/src/file_max.c
+++ b/src/file_max.c
@@ -37,7 +37,6 @@ static void register_header_check_max(file_stat_t *file_stat);
const file_hint_t file_hint_max= {
.extension="max",
.description="PaperPort",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mb.c b/src/file_mb.c
index 4ae761a..d7a579c 100644
--- a/src/file_mb.c
+++ b/src/file_mb.c
@@ -36,7 +36,6 @@ static void register_header_check_mb(file_stat_t *file_stat);
const file_hint_t file_hint_mb= {
.extension="mb",
.description="Maya",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mcd.c b/src/file_mcd.c
index c07fef8..1d8ce77 100644
--- a/src/file_mcd.c
+++ b/src/file_mcd.c
@@ -34,7 +34,6 @@ static void register_header_check_mcd(file_stat_t *file_stat);
const file_hint_t file_hint_mcd= {
.extension="mcd",
.description="VectorWorks",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mdb.c b/src/file_mdb.c
index 1401e18..f7aad9e 100644
--- a/src/file_mdb.c
+++ b/src/file_mdb.c
@@ -36,7 +36,6 @@ static void register_header_check_accdb(file_stat_t *file_stat);
const file_hint_t file_hint_mdb= {
.extension="mdb",
.description="Access Data Base",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
@@ -46,7 +45,6 @@ const file_hint_t file_hint_mdb= {
const file_hint_t file_hint_accdb= {
.extension="accdb",
.description="Access Data Base",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mdf.c b/src/file_mdf.c
index 257231e..a1020eb 100644
--- a/src/file_mdf.c
+++ b/src/file_mdf.c
@@ -37,7 +37,6 @@ static int header_check_mdf(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_mdf= {
.extension="mdf",
.description="Microsoft SQL Server Master Database File",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mfa.c b/src/file_mfa.c
index f765949..8915ca5 100644
--- a/src/file_mfa.c
+++ b/src/file_mfa.c
@@ -34,7 +34,6 @@ static void register_header_check_mfa(file_stat_t *file_stat);
const file_hint_t file_hint_mfa= {
.extension="mfa",
.description="The Games Factory Multimedia Fusion Files",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mfg.c b/src/file_mfg.c
index 3cf9032..2c5e892 100644
--- a/src/file_mfg.c
+++ b/src/file_mfg.c
@@ -35,7 +35,6 @@ static void register_header_check_mfg(file_stat_t *file_stat);
const file_hint_t file_hint_mfg= {
.extension="mfg",
.description="Pro/ENGINEER Manufacturing",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mft.c b/src/file_mft.c
index 493a76c..8802672 100644
--- a/src/file_mft.c
+++ b/src/file_mft.c
@@ -38,7 +38,6 @@ static int header_check_mft(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_mft= {
.extension="mft",
.description="NTFS MFT record",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=0,
.enable_by_default=1,
diff --git a/src/file_mid.c b/src/file_mid.c
index d468720..3fb0703 100644
--- a/src/file_mid.c
+++ b/src/file_mid.c
@@ -43,7 +43,6 @@ static void register_header_check_mid(file_stat_t *file_stat);
const file_hint_t file_hint_mid= {
.extension="mid",
.description="MIDI Musical Instrument Digital Interface",
- .min_header_distance=0,
.max_filesize=50*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mig.c b/src/file_mig.c
index d9eb5c1..93d807a 100644
--- a/src/file_mig.c
+++ b/src/file_mig.c
@@ -45,7 +45,6 @@ static void register_header_check_mig(file_stat_t *file_stat);
const file_hint_t file_hint_mig= {
.extension="mig",
.description="Windows Migration Backup",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mk5.c b/src/file_mk5.c
index e6882be..a23636d 100644
--- a/src/file_mk5.c
+++ b/src/file_mk5.c
@@ -34,7 +34,6 @@ static void register_header_check_mk5(file_stat_t *file_stat);
const file_hint_t file_hint_mk5= {
.extension="mk5",
.description="Custom CAD-CAM",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mkv.c b/src/file_mkv.c
index 9d8d89e..7d115a4 100644
--- a/src/file_mkv.c
+++ b/src/file_mkv.c
@@ -45,7 +45,6 @@ static int header_check_mkv(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_mkv= {
.extension="mkv",
.description="Matroska",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mlv.c b/src/file_mlv.c
index d139eee..38cb55b 100644
--- a/src/file_mlv.c
+++ b/src/file_mlv.c
@@ -42,7 +42,6 @@ static void register_header_check_mlv(file_stat_t *file_stat);
const file_hint_t file_hint_mlv= {
.extension="mlv",
.description="Magic Lantern Video",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mobi.c b/src/file_mobi.c
index 00e4067..3d9e59a 100644
--- a/src/file_mobi.c
+++ b/src/file_mobi.c
@@ -35,7 +35,6 @@ static void register_header_check_mobi(file_stat_t *file_stat);
const file_hint_t file_hint_mobi= {
.extension="mobi",
.description="Mobi e-book",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mov.c b/src/file_mov.c
index f5dcf86..68b7746 100644
--- a/src/file_mov.c
+++ b/src/file_mov.c
@@ -39,7 +39,6 @@ static data_check_t data_check_mov(const unsigned char *buffer, const unsigned i
const file_hint_t file_hint_mov= {
.extension="mov",
.description="mov/mp4/3gp/3g2/jp2",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mp3.c b/src/file_mp3.c
index 0672a57..e5e793a 100644
--- a/src/file_mp3.c
+++ b/src/file_mp3.c
@@ -44,7 +44,6 @@ static unsigned int search_MMT(const unsigned char *buffer, const unsigned int i
const file_hint_t file_hint_mp3= {
.extension="mp3",
.description="MP3 audio (MPEG ADTS, layer III, v1)",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mpg.c b/src/file_mpg.c
index 19e6086..1873e38 100644
--- a/src/file_mpg.c
+++ b/src/file_mpg.c
@@ -36,7 +36,6 @@ static void register_header_check_mpg(file_stat_t *file_stat);
const file_hint_t file_hint_mpg= {
.extension="mpg",
.description="Moving Picture Experts Group video",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mrw.c b/src/file_mrw.c
index 4b5edd2..2f1d122 100644
--- a/src/file_mrw.c
+++ b/src/file_mrw.c
@@ -37,7 +37,6 @@ static void register_header_check_mrw(file_stat_t *file_stat);
const file_hint_t file_hint_mrw= {
.extension="mrw",
.description="Minolta Raw picture",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mus.c b/src/file_mus.c
index fcfa88c..1e46612 100644
--- a/src/file_mus.c
+++ b/src/file_mus.c
@@ -35,7 +35,6 @@ static void register_header_check_mus(file_stat_t *file_stat);
const file_hint_t file_hint_mus= {
.extension="mus",
.description="Finale Music Score",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mxf.c b/src/file_mxf.c
index c9905e0..066b36c 100644
--- a/src/file_mxf.c
+++ b/src/file_mxf.c
@@ -34,7 +34,6 @@ static void register_header_check_mxf(file_stat_t *file_stat);
const file_hint_t file_hint_mxf= {
.extension="mxf",
.description="Material Exchange Format",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_myo.c b/src/file_myo.c
index f78f206..0865f8a 100644
--- a/src/file_myo.c
+++ b/src/file_myo.c
@@ -36,7 +36,6 @@ static int header_check_myo(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_myo= {
.extension="myo",
.description="Mind Your Own Business",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_mysql.c b/src/file_mysql.c
index 199abe4..2052b7a 100644
--- a/src/file_mysql.c
+++ b/src/file_mysql.c
@@ -37,7 +37,6 @@ static int header_check_mysql(const unsigned char *buffer, const unsigned int bu
const file_hint_t file_hint_mysql= {
.extension="MYI",
.description="MySQL (myi/frm)",
- .min_header_distance=0,
.max_filesize=0,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_nds.c b/src/file_nds.c
index 1d1978e..ea8ab19 100644
--- a/src/file_nds.c
+++ b/src/file_nds.c
@@ -35,7 +35,6 @@ static void register_header_check_nds(file_stat_t *file_stat);
const file_hint_t file_hint_nds= {
.extension="nds",
.description="Nintendo DS Game ROM Image",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_nes.c b/src/file_nes.c
index 91e2d17..5e6601f 100644
--- a/src/file_nes.c
+++ b/src/file_nes.c
@@ -36,7 +36,6 @@ static void register_header_check_nes(file_stat_t *file_stat);
const file_hint_t file_hint_nes= {
.extension="nes",
.description="iNES/iNES 2.0 ROM image",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=0,
diff --git a/src/file_njx.c b/src/file_njx.c
index 4e703fd..57be6b8 100644
--- a/src/file_njx.c
+++ b/src/file_njx.c
@@ -38,7 +38,6 @@ static void file_check_njx(file_recovery_t *file_recovery);
const file_hint_t file_hint_njx= {
.extension="njx",
.description="NJStar Document",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_nk2.c b/src/file_nk2.c
index bf193ba..64f6052 100644
--- a/src/file_nk2.c
+++ b/src/file_nk2.c
@@ -43,7 +43,6 @@ static void register_header_check_nk2(file_stat_t *file_stat);
const file_hint_t file_hint_nk2= {
.extension="nk2",
.description="Outlook Nickfile",
- .min_header_distance=0,
.max_filesize=100*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_nsf.c b/src/file_nsf.c
index ade09e2..af3269b 100644
--- a/src/file_nsf.c
+++ b/src/file_nsf.c
@@ -35,7 +35,6 @@ static void register_header_check_nsf(file_stat_t *file_stat);
const file_hint_t file_hint_nsf= {
.extension="nsf",
.description="Lotus Notes",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_oci.c b/src/file_oci.c
index f7c1d21..b033108 100644
--- a/src/file_oci.c
+++ b/src/file_oci.c
@@ -36,7 +36,6 @@ static void register_header_check_oci(file_stat_t *file_stat);
const file_hint_t file_hint_oci= {
.extension="oci",
.description="OpenCanvas Image",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ogg.c b/src/file_ogg.c
index e5b9488..3c1d95e 100644
--- a/src/file_ogg.c
+++ b/src/file_ogg.c
@@ -37,7 +37,6 @@ static data_check_t data_check_ogg(const unsigned char *buffer, const unsigned i
const file_hint_t file_hint_ogg= {
.extension="ogg",
.description="OGG audio",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_one.c b/src/file_one.c
index 7f4b93c..31664c0 100644
--- a/src/file_one.c
+++ b/src/file_one.c
@@ -35,7 +35,6 @@ static void register_header_check_one(file_stat_t *file_stat);
const file_hint_t file_hint_one= {
.extension="one",
.description="Microsoft OneNote",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_orf.c b/src/file_orf.c
index 211a1df..bf3f5b1 100644
--- a/src/file_orf.c
+++ b/src/file_orf.c
@@ -36,7 +36,6 @@ static void register_header_check_orf(file_stat_t *file_stat);
const file_hint_t file_hint_orf= {
.extension="orf",
.description="Olympus Raw Format picture",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_paf.c b/src/file_paf.c
index 71dd880..6e956d9 100644
--- a/src/file_paf.c
+++ b/src/file_paf.c
@@ -35,7 +35,6 @@ static void register_header_check_paf(file_stat_t *file_stat);
const file_hint_t file_hint_paf= {
.extension="paf",
.description="Personal Ancestral File",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_pap.c b/src/file_pap.c
index 5ce561a..9f51490 100644
--- a/src/file_pap.c
+++ b/src/file_pap.c
@@ -36,7 +36,6 @@ static void register_header_check_pap(file_stat_t *file_stat);
const file_hint_t file_hint_pap= {
.extension="pap",
.description="Papyrus word file",
- .min_header_distance=0,
.max_filesize=1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_par2.c b/src/file_par2.c
index 017e6cc..e473ee0 100644
--- a/src/file_par2.c
+++ b/src/file_par2.c
@@ -43,7 +43,6 @@ static void register_header_check_par2(file_stat_t *file_stat);
const file_hint_t file_hint_par2= {
.extension="par2",
.description="parchive",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_pcap.c b/src/file_pcap.c
index 0a61a24..337a4da 100644
--- a/src/file_pcap.c
+++ b/src/file_pcap.c
@@ -35,7 +35,6 @@ static void register_header_check_pcap(file_stat_t *file_stat);
const file_hint_t file_hint_pcap= {
.extension="pcap",
.description="tcpdump capture file",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_pct.c b/src/file_pct.c
index a24d610..cfc1460 100644
--- a/src/file_pct.c
+++ b/src/file_pct.c
@@ -38,7 +38,6 @@ static void file_check_pct(file_recovery_t *file_recovery);
const file_hint_t file_hint_pct= {
.extension="pct",
.description="Macintosh Picture",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_pcx.c b/src/file_pcx.c
index 6332f6e..4f351e8 100644
--- a/src/file_pcx.c
+++ b/src/file_pcx.c
@@ -40,7 +40,6 @@ static int header_check_pcx(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_pcx= {
.extension="pcx",
.description="PCX bitmap image",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_pdf.c b/src/file_pdf.c
index 3d0afac..1a3d8f6 100644
--- a/src/file_pdf.c
+++ b/src/file_pdf.c
@@ -51,7 +51,6 @@ static void file_date_pdf(file_recovery_t *file_recovery);
const file_hint_t file_hint_pdf= {
.extension="pdf",
.description="Portable Document Format, Adobe Illustrator",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_pds.c b/src/file_pds.c
index aee3231..f16641e 100644
--- a/src/file_pds.c
+++ b/src/file_pds.c
@@ -35,7 +35,6 @@ static void register_header_check_pds(file_stat_t *file_stat);
const file_hint_t file_hint_pds= {
.extension="pds",
.description="Reson - Sonar Data",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_pfx.c b/src/file_pfx.c
index 99caf84..2151bd6 100644
--- a/src/file_pfx.c
+++ b/src/file_pfx.c
@@ -35,7 +35,6 @@ static void register_header_check_pfx(file_stat_t *file_stat);
const file_hint_t file_hint_pfx= {
.extension="pfx",
.description="PKCS#12 keys",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_plist.c b/src/file_plist.c
index 0638510..d033549 100644
--- a/src/file_plist.c
+++ b/src/file_plist.c
@@ -36,7 +36,6 @@ static void register_header_check_plist(file_stat_t *file_stat);
const file_hint_t file_hint_plist= {
.extension="plist",
.description="Apple binary property list",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_plt.c b/src/file_plt.c
index c0c951f..7ad9334 100644
--- a/src/file_plt.c
+++ b/src/file_plt.c
@@ -35,7 +35,6 @@ static void register_header_check_plt(file_stat_t *file_stat);
const file_hint_t file_hint_plt= {
.extension="plt",
.description="Gerber Graphix Advantage",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_png.c b/src/file_png.c
index 014b1b7..f71f5a2 100644
--- a/src/file_png.c
+++ b/src/file_png.c
@@ -53,7 +53,6 @@ static data_check_t data_check_mng(const unsigned char *buffer, const unsigned i
const file_hint_t file_hint_png= {
.extension="png",
.description="Portable/JPEG/Multiple-Image Network Graphics",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_pnm.c b/src/file_pnm.c
index 612aa56..569defb 100644
--- a/src/file_pnm.c
+++ b/src/file_pnm.c
@@ -36,7 +36,6 @@ static void register_header_check_pnm(file_stat_t *file_stat);
const file_hint_t file_hint_pnm= {
.extension="pnm",
.description="Netpbm (PBM/PGM/PPM)",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_prc.c b/src/file_prc.c
index 9f53981..5679ff5 100644
--- a/src/file_prc.c
+++ b/src/file_prc.c
@@ -37,7 +37,6 @@ static int header_check_prc(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_prc= {
.extension="prc",
.description="PalmOS application",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_prt.c b/src/file_prt.c
index 29b2d02..59ccc5e 100644
--- a/src/file_prt.c
+++ b/src/file_prt.c
@@ -35,7 +35,6 @@ static void register_header_check_prt(file_stat_t *file_stat);
const file_hint_t file_hint_prt= {
.extension="prt",
.description="Pro/ENGINEER Model",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ps.c b/src/file_ps.c
index 5551744..f9cfb6c 100644
--- a/src/file_ps.c
+++ b/src/file_ps.c
@@ -39,7 +39,6 @@ static data_check_t data_check_ps(const unsigned char *buffer, const unsigned in
const file_hint_t file_hint_ps= {
.extension="ps",
.description="PostScript or Encapsulated PostScript document",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_psb.c b/src/file_psb.c
index 6e91e71..6a83695 100644
--- a/src/file_psb.c
+++ b/src/file_psb.c
@@ -42,7 +42,6 @@ static void file_check_psb(file_recovery_t *file_recovery);
const file_hint_t file_hint_psb= {
.extension="psb",
.description="Adobe Photoshop Image",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_psd.c b/src/file_psd.c
index 0237da3..a80e502 100644
--- a/src/file_psd.c
+++ b/src/file_psd.c
@@ -42,7 +42,6 @@ static void file_check_psd(file_recovery_t *file_recovery);
const file_hint_t file_hint_psd= {
.extension="psd",
.description="Adobe Photoshop Image",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_psf.c b/src/file_psf.c
index 4725f8a..299ac1d 100644
--- a/src/file_psf.c
+++ b/src/file_psf.c
@@ -35,7 +35,6 @@ static void register_header_check_psf(file_stat_t *file_stat);
const file_hint_t file_hint_psf= {
.extension="psf",
.description="Print Shop",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_psp.c b/src/file_psp.c
index 1ace5bb..a219467 100644
--- a/src/file_psp.c
+++ b/src/file_psp.c
@@ -37,7 +37,6 @@ static int header_check_psp(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_psp= {
.extension="psp",
.description="Paint Shop Pro Image File",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_pst.c b/src/file_pst.c
index beead2b..464f329 100644
--- a/src/file_pst.c
+++ b/src/file_pst.c
@@ -37,7 +37,6 @@ static int header_check_pst(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_pst= {
.extension="pst",
.description="Outlook (pst/wab/dbx)",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ptb.c b/src/file_ptb.c
index 4d6fab3..13837d1 100644
--- a/src/file_ptb.c
+++ b/src/file_ptb.c
@@ -35,7 +35,6 @@ static void register_header_check_ptb(file_stat_t *file_stat);
const file_hint_t file_hint_ptb= {
.extension="ptb",
.description="PowerTab",
- .min_header_distance=0,
.max_filesize=10*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ptf.c b/src/file_ptf.c
index 0fddd37..c2ba225 100644
--- a/src/file_ptf.c
+++ b/src/file_ptf.c
@@ -35,7 +35,6 @@ static void register_header_check_ptf(file_stat_t *file_stat);
const file_hint_t file_hint_ptf= {
.extension="ptf",
.description="Pro Tools session File",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_pyc.c b/src/file_pyc.c
index 65c5dda..c69232f 100644
--- a/src/file_pyc.c
+++ b/src/file_pyc.c
@@ -40,7 +40,6 @@ static int header_check_pyc(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_pyc= {
.extension="pyc",
.description="Python Compiled Script",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_pzf.c b/src/file_pzf.c
index 9852cf1..a7e5a9f 100644
--- a/src/file_pzf.c
+++ b/src/file_pzf.c
@@ -35,7 +35,6 @@ static void register_header_check_pzf(file_stat_t *file_stat);
const file_hint_t file_hint_pzf= {
.extension="pzf",
.description="GraphPrism 4",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_pzh.c b/src/file_pzh.c
index b6ed094..03bcbab 100644
--- a/src/file_pzh.c
+++ b/src/file_pzh.c
@@ -37,7 +37,6 @@ static void register_header_check_pzh(file_stat_t *file_stat);
const file_hint_t file_hint_pzh= {
.extension="pzh",
.description="Presto",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_qbb.c b/src/file_qbb.c
index b579ab2..e29397f 100644
--- a/src/file_qbb.c
+++ b/src/file_qbb.c
@@ -36,7 +36,6 @@ static void register_header_check_qbb(file_stat_t *file_stat);
const file_hint_t file_hint_qbb= {
.extension="qbb",
.description="Quickbooks (qbb/qbw)",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_qdf.c b/src/file_qdf.c
index d2cef79..619a0d0 100644
--- a/src/file_qdf.c
+++ b/src/file_qdf.c
@@ -35,7 +35,6 @@ static void register_header_check_qdf(file_stat_t *file_stat);
const file_hint_t file_hint_qdf= {
.extension="qdf",
.description="Quicken",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_qkt.c b/src/file_qkt.c
index 5e2ad5b..37475e1 100644
--- a/src/file_qkt.c
+++ b/src/file_qkt.c
@@ -35,7 +35,6 @@ static void register_header_check_qkt(file_stat_t *file_stat);
const file_hint_t file_hint_qkt= {
.extension="qkt",
.description="Apple QuickTake 100",
- .min_header_distance=0,
.max_filesize=1024*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_qxd.c b/src/file_qxd.c
index 9dbd9b4..7d8fc7c 100644
--- a/src/file_qxd.c
+++ b/src/file_qxd.c
@@ -37,7 +37,6 @@ static int header_check_qxd(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_qxd= {
.extension="qxd",
.description="QuarkXpress Document",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_r3d.c b/src/file_r3d.c
index 5052829..d465e31 100644
--- a/src/file_r3d.c
+++ b/src/file_r3d.c
@@ -40,7 +40,6 @@ static void file_rename_r3d(file_recovery_t *file_recovery);
const file_hint_t file_hint_r3d= {
.extension="r3d",
.description="RED r3d camera",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ra.c b/src/file_ra.c
index e9ca056..6c4ab7d 100644
--- a/src/file_ra.c
+++ b/src/file_ra.c
@@ -36,7 +36,6 @@ static void register_header_check_ra(file_stat_t *file_stat);
const file_hint_t file_hint_ra= {
.extension="ra",
.description="Real Audio",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_raf.c b/src/file_raf.c
index 5bbd5ca..86d042d 100644
--- a/src/file_raf.c
+++ b/src/file_raf.c
@@ -37,7 +37,6 @@ static void register_header_check_raf(file_stat_t *file_stat);
const file_hint_t file_hint_raf= {
.extension="raf",
.description="Raw Fujifilm picture",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_rar.c b/src/file_rar.c
index b8acbb6..730b8e0 100644
--- a/src/file_rar.c
+++ b/src/file_rar.c
@@ -38,7 +38,6 @@ static void file_check_rar(file_recovery_t *file_recovery);
const file_hint_t file_hint_rar= {
.extension="rar", /* What is the correct extension ? */
.description="Rar archive",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_raw.c b/src/file_raw.c
index 12eba46..8368f93 100644
--- a/src/file_raw.c
+++ b/src/file_raw.c
@@ -35,7 +35,6 @@ static void register_header_check_raw(file_stat_t *file_stat);
const file_hint_t file_hint_raw= {
.extension="raw", /* What is the correct extension ? */
.description="Contax picture RAW",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_rdc.c b/src/file_rdc.c
index 883bc29..3414097 100644
--- a/src/file_rdc.c
+++ b/src/file_rdc.c
@@ -35,7 +35,6 @@ static void register_header_check_rdc(file_stat_t *file_stat);
const file_hint_t file_hint_rdc= {
.extension="rdc",
.description="Rollei picture",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_reg.c b/src/file_reg.c
index b6f2e50..4540d82 100644
--- a/src/file_reg.c
+++ b/src/file_reg.c
@@ -36,7 +36,6 @@ static void register_header_check_reg(file_stat_t *file_stat);
const file_hint_t file_hint_reg= {
.extension="reg",
.description="Windows Registry",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_res.c b/src/file_res.c
index 728bf75..2b536bd 100644
--- a/src/file_res.c
+++ b/src/file_res.c
@@ -35,7 +35,6 @@ static void register_header_check_res(file_stat_t *file_stat);
const file_hint_t file_hint_res= {
.extension="res",
.description="Microsoft Visual Studio Resource file",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_rfp.c b/src/file_rfp.c
index 879988b..1778b2a 100644
--- a/src/file_rfp.c
+++ b/src/file_rfp.c
@@ -35,7 +35,6 @@ static void register_header_check_rfp(file_stat_t *file_stat);
const file_hint_t file_hint_rfp= {
.extension="rfp",
.description="RoboForm",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_riff.c b/src/file_riff.c
index 397cf87..e54ca52 100644
--- a/src/file_riff.c
+++ b/src/file_riff.c
@@ -46,7 +46,6 @@ static void register_header_check_riff(file_stat_t *file_stat);
const file_hint_t file_hint_riff= {
.extension="riff",
.description="RIFF audio/video: wav, cdr, avi",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_rlv.c b/src/file_rlv.c
index dee24d9..9adba92 100644
--- a/src/file_rlv.c
+++ b/src/file_rlv.c
@@ -35,7 +35,6 @@ static void register_header_check_rlv(file_stat_t *file_stat);
const file_hint_t file_hint_rlv= {
.extension="rlv",
.description="Revelation password",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_rm.c b/src/file_rm.c
index e118df0..3ac1e47 100644
--- a/src/file_rm.c
+++ b/src/file_rm.c
@@ -37,7 +37,6 @@ static int header_check_rm(const unsigned char *buffer, const unsigned int buffe
const file_hint_t file_hint_rm= {
.extension="rm",
.description="Real Audio",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_rns.c b/src/file_rns.c
index 58bf0eb..b1455b4 100644
--- a/src/file_rns.c
+++ b/src/file_rns.c
@@ -35,7 +35,6 @@ static void register_header_check_rns(file_stat_t *file_stat);
const file_hint_t file_hint_rns= {
.extension="rns",
.description="Reason Audio File",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_rpm.c b/src/file_rpm.c
index b86bbc2..4ec95b5 100644
--- a/src/file_rpm.c
+++ b/src/file_rpm.c
@@ -38,7 +38,6 @@ static int header_check_rpm(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_rpm= {
.extension="rpm",
.description="RPM package",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_rw2.c b/src/file_rw2.c
index 1a1ea1c..1310561 100644
--- a/src/file_rw2.c
+++ b/src/file_rw2.c
@@ -38,7 +38,6 @@ static int header_check_rw2(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_rw2= {
.extension="rw2",
.description="Panasonic/Leica RAW",
- .min_header_distance=0x800, /* Avoid jpg fragment */
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_rx2.c b/src/file_rx2.c
index 261f654..ab184aa 100644
--- a/src/file_rx2.c
+++ b/src/file_rx2.c
@@ -36,7 +36,6 @@ static void register_header_check_rx2(file_stat_t *file_stat);
const file_hint_t file_hint_rx2= {
.extension="rx2",
.description="Zotope RX 2, Audio Repair Software file",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_save.c b/src/file_save.c
index 112735c..205bf4c 100644
--- a/src/file_save.c
+++ b/src/file_save.c
@@ -35,7 +35,6 @@ static void register_header_check_save(file_stat_t *file_stat);
const file_hint_t file_hint_save= {
.extension="save",
.description="Assassin's Creed II",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ses.c b/src/file_ses.c
index 76ee4d6..5739eee 100644
--- a/src/file_ses.c
+++ b/src/file_ses.c
@@ -36,7 +36,6 @@ static void register_header_check_ses(file_stat_t *file_stat);
const file_hint_t file_hint_ses= {
.extension="ses",
.description="Cool Edit/Adobe Audition session",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_sgcta.c b/src/file_sgcta.c
index 1cf2d5c..3bc866e 100644
--- a/src/file_sgcta.c
+++ b/src/file_sgcta.c
@@ -35,7 +35,6 @@ static void register_header_check_sgcta(file_stat_t *file_stat);
const file_hint_t file_hint_sgcta= {
.extension="sgcta",
.description="Ciel",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_shn.c b/src/file_shn.c
index 5355647..c0fd732 100644
--- a/src/file_shn.c
+++ b/src/file_shn.c
@@ -35,7 +35,6 @@ static void register_header_check_shn(file_stat_t *file_stat);
const file_hint_t file_hint_shn= {
.extension="shn",
.description="Shorten audio file",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_sib.c b/src/file_sib.c
index 6e6d77a..bd29dc3 100644
--- a/src/file_sib.c
+++ b/src/file_sib.c
@@ -35,7 +35,6 @@ static void register_header_check_sib(file_stat_t *file_stat);
const file_hint_t file_hint_sib= {
.extension="sib",
.description="Sibelius",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_sig.c b/src/file_sig.c
index 565ebd7..7908d3c 100644
--- a/src/file_sig.c
+++ b/src/file_sig.c
@@ -47,7 +47,6 @@ static int header_check_sig(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_sig= {
.extension="custom",
.description="Own custom signatures",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_sit.c b/src/file_sit.c
index b7547ab..ec64e6f 100644
--- a/src/file_sit.c
+++ b/src/file_sit.c
@@ -37,7 +37,6 @@ static int header_check_sit(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_sit= {
.extension="sit",
.description="Mikron image",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_skd.c b/src/file_skd.c
index f9ca138..c01e5c1 100644
--- a/src/file_skd.c
+++ b/src/file_skd.c
@@ -34,7 +34,6 @@ static void register_header_check_skd(file_stat_t *file_stat);
const file_hint_t file_hint_skd= {
.extension="skd",
.description="AutoSketch drawing",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_skp.c b/src/file_skp.c
index ab89e8d..1b16402 100644
--- a/src/file_skp.c
+++ b/src/file_skp.c
@@ -35,7 +35,6 @@ static void register_header_check_skp(file_stat_t *file_stat);
const file_hint_t file_hint_skp= {
.extension="skp",
.description="SketchUp",
- .min_header_distance=0,
.max_filesize=10*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_sp3.c b/src/file_sp3.c
index 7f2b517..4d3336d 100644
--- a/src/file_sp3.c
+++ b/src/file_sp3.c
@@ -40,7 +40,6 @@ static void register_header_check_sp3(file_stat_t *file_stat);
const file_hint_t file_hint_sp3= {
.extension="sp3",
.description="Sisporto SP3/SPM",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_spe.c b/src/file_spe.c
index 6feca00..9130cf1 100644
--- a/src/file_spe.c
+++ b/src/file_spe.c
@@ -38,7 +38,6 @@ static int header_check_spe(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_spe= {
.extension="spe",
.description="WinSpec bitmap image",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_spf.c b/src/file_spf.c
index 09ecb8a..bda990f 100644
--- a/src/file_spf.c
+++ b/src/file_spf.c
@@ -43,7 +43,6 @@ static void register_header_check_spf(file_stat_t *file_stat);
const file_hint_t file_hint_spf= {
.extension="spf",
.description="ShadowProtect",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_spss.c b/src/file_spss.c
index 9199135..a837adb 100644
--- a/src/file_spss.c
+++ b/src/file_spss.c
@@ -35,7 +35,6 @@ static void register_header_check_spss(file_stat_t *file_stat);
const file_hint_t file_hint_spss= {
.extension="sav",
.description="SPSS (Statistical Package for the Social Sciences) saved data",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_sql.c b/src/file_sql.c
index 21b7f35..3592d68 100644
--- a/src/file_sql.c
+++ b/src/file_sql.c
@@ -37,7 +37,6 @@ static int header_check_sqlite(const unsigned char *buffer, const unsigned int b
const file_hint_t file_hint_sqlite= {
.extension="sqlite",
.description="SQLite",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_sqm.c b/src/file_sqm.c
index 0727aee..f72dee2 100644
--- a/src/file_sqm.c
+++ b/src/file_sqm.c
@@ -35,7 +35,6 @@ static void register_header_check_sqm(file_stat_t *file_stat);
const file_hint_t file_hint_sqm= {
.extension="sqm",
.description="Windows Live Messenger Log File",
- .min_header_distance=0,
.max_filesize=100*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_stl.c b/src/file_stl.c
index 5b59d96..ee579c5 100644
--- a/src/file_stl.c
+++ b/src/file_stl.c
@@ -37,7 +37,6 @@ static int header_check_stl(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_stl= {
.extension="stl",
.description="Stereolithography CAD (Binary format)",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_stu.c b/src/file_stu.c
index 48634d0..fe914df 100644
--- a/src/file_stu.c
+++ b/src/file_stu.c
@@ -36,7 +36,6 @@ static void register_header_check_stuffit(file_stat_t *file_stat);
const file_hint_t file_hint_stuffit= {
.extension="sit",
.description="StuffIt Archive",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_swf.c b/src/file_swf.c
index 543b684..a64d0ea 100644
--- a/src/file_swf.c
+++ b/src/file_swf.c
@@ -39,7 +39,6 @@ static void register_header_check_swf(file_stat_t *file_stat);
const file_hint_t file_hint_swf= {
.extension="swf",
.description="Macromedia Flash (Compiled)",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_tar.c b/src/file_tar.c
index 7afc244..793a208 100644
--- a/src/file_tar.c
+++ b/src/file_tar.c
@@ -37,7 +37,6 @@ static void register_header_check_tar(file_stat_t *file_stat);
const file_hint_t file_hint_tar= {
.extension="tar",
.description="tar archive",
- .min_header_distance=0x200,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_tax.c b/src/file_tax.c
index 637e69c..66515b9 100644
--- a/src/file_tax.c
+++ b/src/file_tax.c
@@ -36,7 +36,6 @@ static void register_header_check_tax(file_stat_t *file_stat);
const file_hint_t file_hint_tax= {
.extension="tax",
.description="Turbo Tax",
- .min_header_distance=0,
.max_filesize=100*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_template.c b/src/file_template.c
index 2dfa359..190207e 100644
--- a/src/file_template.c
+++ b/src/file_template.c
@@ -35,7 +35,6 @@ static void register_header_check_EXTENSION(file_stat_t *file_stat);
const file_hint_t file_hint_EXTENSION= {
.extension="EXTENSION",
.description="EXTENSION",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_tg.c b/src/file_tg.c
index d3edda5..fb93a9b 100644
--- a/src/file_tg.c
+++ b/src/file_tg.c
@@ -35,7 +35,6 @@ static void register_header_check_tg(file_stat_t *file_stat);
const file_hint_t file_hint_tg= {
.extension="tg",
.description="Tux Guitar 1.2",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_tib.c b/src/file_tib.c
index 2b0bc38..d8508fb 100644
--- a/src/file_tib.c
+++ b/src/file_tib.c
@@ -46,7 +46,6 @@ static int header_check_tib(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_tib= {
.extension="tib",
.description="Acronis True Image",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_tiff.c b/src/file_tiff.c
index a929ee9..f2795bc 100644
--- a/src/file_tiff.c
+++ b/src/file_tiff.c
@@ -48,7 +48,6 @@ static uint64_t header_check_tiff_le(file_recovery_t *fr, const uint32_t tiff_di
const file_hint_t file_hint_tiff= {
.extension="tif",
.description="Tag Image File Format and some raw file formats (pef/nef/dcr/sr2/cr2)",
- .min_header_distance=0,
.max_filesize=100*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_tivo.c b/src/file_tivo.c
index fcbcd3a..dad23d8 100644
--- a/src/file_tivo.c
+++ b/src/file_tivo.c
@@ -35,7 +35,6 @@ static void register_header_check_tivo(file_stat_t *file_stat);
const file_hint_t file_hint_tivo= {
.extension="TiVo",
.description="TiVo video record",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_torrent.c b/src/file_torrent.c
index d0b8dd3..6f116ce 100644
--- a/src/file_torrent.c
+++ b/src/file_torrent.c
@@ -35,7 +35,6 @@ static void register_header_check_torrent(file_stat_t *file_stat);
const file_hint_t file_hint_torrent= {
.extension="torrent",
.description="Torrent",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_tph.c b/src/file_tph.c
index 99e532f..36a7da3 100644
--- a/src/file_tph.c
+++ b/src/file_tph.c
@@ -39,7 +39,6 @@ static void file_check_tph(file_recovery_t *file_recovery);
const file_hint_t file_hint_tph= {
.extension="tph",
.description="Pro/ENGINEER ToolPath",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_tpl.c b/src/file_tpl.c
index 257c688..5e4d1f0 100644
--- a/src/file_tpl.c
+++ b/src/file_tpl.c
@@ -35,7 +35,6 @@ static void register_header_check_tpl(file_stat_t *file_stat);
const file_hint_t file_hint_tpl= {
.extension="tpl",
.description="Adobe Tool Preset",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_ttf.c b/src/file_ttf.c
index 0d926b4..7ed7ffa 100644
--- a/src/file_ttf.c
+++ b/src/file_ttf.c
@@ -36,7 +36,6 @@ static void register_header_check_ttf(file_stat_t *file_stat);
const file_hint_t file_hint_ttf= {
.extension="ttf",
.description="TrueType Font",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_txt.c b/src/file_txt.c
index 6c61c22..01fbae8 100644
--- a/src/file_txt.c
+++ b/src/file_txt.c
@@ -60,7 +60,6 @@ static int header_check_le16_txt(const unsigned char *buffer, const unsigned int
const file_hint_t file_hint_fasttxt= {
.extension="tx?",
.description="Text files with header: rtf,xml,xhtml,mbox/imm,pm,ram,reg,sh,slk,stp,jad,url",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
@@ -70,7 +69,6 @@ const file_hint_t file_hint_fasttxt= {
const file_hint_t file_hint_txt= {
.extension="txt",
.description="Other text files: txt,html,asp,bat,C,jsp,perl,php,py/emlx... scripts",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_tz.c b/src/file_tz.c
index c1d6a76..c7ff41f 100644
--- a/src/file_tz.c
+++ b/src/file_tz.c
@@ -39,7 +39,6 @@ static void register_header_check_tz(file_stat_t *file_stat);
const file_hint_t file_hint_tz= {
.extension="tz",
.description="Timezone info",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_v2i.c b/src/file_v2i.c
index b3b6882..cb655fe 100644
--- a/src/file_v2i.c
+++ b/src/file_v2i.c
@@ -35,7 +35,6 @@ static void register_header_check_v2i(file_stat_t *file_stat);
const file_hint_t file_hint_v2i= {
.extension="v2i",
.description="v2i backup",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_vault.c b/src/file_vault.c
index 0a65153..7943e6b 100644
--- a/src/file_vault.c
+++ b/src/file_vault.c
@@ -35,7 +35,6 @@ static void register_header_check_vault(file_stat_t *file_stat);
const file_hint_t file_hint_vault= {
.extension="vault",
.description="McAfee Anti-Theft/FileVault",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_vdi.c b/src/file_vdi.c
index b9525f1..7c7b2be 100644
--- a/src/file_vdi.c
+++ b/src/file_vdi.c
@@ -36,7 +36,6 @@ static void register_header_check_vdi(file_stat_t *file_stat);
const file_hint_t file_hint_vdi= {
.extension="vdi",
.description="Virtual desktop infrastructure 1.1",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_veg.c b/src/file_veg.c
index 6e09a41..8000754 100644
--- a/src/file_veg.c
+++ b/src/file_veg.c
@@ -35,7 +35,6 @@ static void register_header_check_veg(file_stat_t *file_stat);
const file_hint_t file_hint_veg= {
.extension="veg",
.description="Sony Vegas",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_vfb.c b/src/file_vfb.c
index 2c66cc3..bad108e 100644
--- a/src/file_vfb.c
+++ b/src/file_vfb.c
@@ -35,7 +35,6 @@ static void register_header_check_vfb(file_stat_t *file_stat);
const file_hint_t file_hint_vfb= {
.extension="vfb",
.description="FontLab",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_vmdk.c b/src/file_vmdk.c
index 753a902..02bcec6 100644
--- a/src/file_vmdk.c
+++ b/src/file_vmdk.c
@@ -36,7 +36,6 @@ static void register_header_check_vmdk(file_stat_t *file_stat);
const file_hint_t file_hint_vmdk= {
.extension="vmdk",
.description="VMWare",
- .min_header_distance=0,
.max_filesize=(uint64_t)2048*1024*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_vmg.c b/src/file_vmg.c
index 9c33e86..46e42b8 100644
--- a/src/file_vmg.c
+++ b/src/file_vmg.c
@@ -35,7 +35,6 @@ static void register_header_check_vmg(file_stat_t *file_stat);
const file_hint_t file_hint_vmg= {
.extension="vmg",
.description="Nokia Text Message",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_wallet.c b/src/file_wallet.c
index 9a21cc2..55f5f90 100644
--- a/src/file_wallet.c
+++ b/src/file_wallet.c
@@ -35,7 +35,6 @@ static void register_header_check_wallet(file_stat_t *file_stat);
const file_hint_t file_hint_wallet= {
.extension="wallet",
.description="Armory bitcoin wallet",
- .min_header_distance=0,
.max_filesize=10*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_wdp.c b/src/file_wdp.c
index 0ab5e92..7948cc6 100644
--- a/src/file_wdp.c
+++ b/src/file_wdp.c
@@ -38,7 +38,6 @@ static int header_check_wdp(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_wdp= {
.extension="wdp",
.description="JPEG XR",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_wim.c b/src/file_wim.c
index cecee24..c0d4748 100644
--- a/src/file_wim.c
+++ b/src/file_wim.c
@@ -38,7 +38,6 @@ static void register_header_check_wim(file_stat_t *file_stat);
const file_hint_t file_hint_wim= {
.extension="wim",
.description="Windows imaging (WIM) image",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_win.c b/src/file_win.c
index 30d5f0a..4db35b6 100644
--- a/src/file_win.c
+++ b/src/file_win.c
@@ -40,7 +40,6 @@ static void register_header_check_win(file_stat_t *file_stat);
const file_hint_t file_hint_win= {
.extension="win",
.description="Opera preferences",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_wks.c b/src/file_wks.c
index 5611d36..c613239 100644
--- a/src/file_wks.c
+++ b/src/file_wks.c
@@ -35,7 +35,6 @@ static void register_header_check_wks(file_stat_t *file_stat);
const file_hint_t file_hint_wks= {
.extension="wks",
.description="Lotus 1-2-3",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_wmf.c b/src/file_wmf.c
index 2622d02..e0a5d17 100644
--- a/src/file_wmf.c
+++ b/src/file_wmf.c
@@ -38,7 +38,6 @@ static int header_check_wmf(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_wmf= {
.extension="wmf",
.description="Microsoft Windows Metafile",
- .min_header_distance=0,
.max_filesize=50*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_wnk.c b/src/file_wnk.c
index 3bd95d2..0605ee1 100644
--- a/src/file_wnk.c
+++ b/src/file_wnk.c
@@ -35,7 +35,6 @@ static void register_header_check_wnk(file_stat_t *file_stat);
const file_hint_t file_hint_wnk= {
.extension="wnk",
.description="Wink",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_woff.c b/src/file_woff.c
index 14855fe..de3bb7f 100644
--- a/src/file_woff.c
+++ b/src/file_woff.c
@@ -36,7 +36,6 @@ static void register_header_check_woff(file_stat_t *file_stat);
const file_hint_t file_hint_woff= {
.extension="woff",
.description="Web Open Font Format",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_wpb.c b/src/file_wpb.c
index a9455ce..42caa6d 100644
--- a/src/file_wpb.c
+++ b/src/file_wpb.c
@@ -35,7 +35,6 @@ static void register_header_check_wpb(file_stat_t *file_stat);
const file_hint_t file_hint_wpb= {
.extension="wpb",
.description="OpenCanvas",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_wpd.c b/src/file_wpd.c
index 6efbcee..3d46653 100644
--- a/src/file_wpd.c
+++ b/src/file_wpd.c
@@ -37,7 +37,6 @@ static int header_check_wpd(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_wpd= {
.extension="wpd",
.description="Corel Documents",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_wtv.c b/src/file_wtv.c
index 669b6d9..e099132 100644
--- a/src/file_wtv.c
+++ b/src/file_wtv.c
@@ -37,7 +37,6 @@ static int header_check_wtv(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_wtv= {
.extension="wtv",
.description="Windows Media Center TV",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_wv.c b/src/file_wv.c
index 22019de..63b60eb 100644
--- a/src/file_wv.c
+++ b/src/file_wv.c
@@ -37,7 +37,6 @@ static data_check_t data_check_wv(const unsigned char *buffer, const unsigned in
const file_hint_t file_hint_wv= {
.extension="wv",
.description="WavPack, Hybrid Lossless Wavefile Compressor",
- .min_header_distance=0,
.max_filesize=100*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_x3f.c b/src/file_x3f.c
index eed5bfd..896ac1a 100644
--- a/src/file_x3f.c
+++ b/src/file_x3f.c
@@ -37,7 +37,6 @@ static int header_check_x3f(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_x3f= {
.extension="x3f",
.description="Sigma/Foveon X3 raw picture",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_xcf.c b/src/file_xcf.c
index a535a50..584a2a7 100644
--- a/src/file_xcf.c
+++ b/src/file_xcf.c
@@ -37,7 +37,6 @@ static int header_check_xcf(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_xcf= {
.extension="xcf",
.description="Gimp XCF File",
- .min_header_distance=0,
.max_filesize=1024*1024*1024,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_xfi.c b/src/file_xfi.c
index 6bd33c9..3c85490 100644
--- a/src/file_xfi.c
+++ b/src/file_xfi.c
@@ -35,7 +35,6 @@ static void register_header_check_xfi(file_stat_t *file_stat);
const file_hint_t file_hint_xfi= {
.extension="xfi",
.description="XFI Electronic Fuel Injection Systems",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_xfs.c b/src/file_xfs.c
index f22b0d3..e607e09 100644
--- a/src/file_xfs.c
+++ b/src/file_xfs.c
@@ -38,7 +38,6 @@ static int header_check_xfs_sb(const unsigned char *buffer, const unsigned int b
const file_hint_t file_hint_xfs= {
.extension="xfs",
.description="xfs structure",
- .min_header_distance=0,
.max_filesize=0,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_xm.c b/src/file_xm.c
index 33f29d8..cab9b96 100644
--- a/src/file_xm.c
+++ b/src/file_xm.c
@@ -38,7 +38,6 @@ static void register_header_check_xm(file_stat_t *file_stat);
const file_hint_t file_hint_xm= {
.extension="xm",
.description="FastTrackerII Extended Module",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_xpt.c b/src/file_xpt.c
index fa238b5..0f45c25 100644
--- a/src/file_xpt.c
+++ b/src/file_xpt.c
@@ -36,7 +36,6 @@ static void register_header_check_xpt(file_stat_t *file_stat);
const file_hint_t file_hint_xpt= {
.extension="xpt",
.description="Mozilla XPCOM Type Library",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_xsv.c b/src/file_xsv.c
index da38a48..67f8735 100644
--- a/src/file_xsv.c
+++ b/src/file_xsv.c
@@ -37,7 +37,6 @@ static int header_check_xsv(const unsigned char *buffer, const unsigned int buff
const file_hint_t file_hint_xsv= {
.extension="xsv",
.description="XBOX GTA San Andreas Save File",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_xv.c b/src/file_xv.c
index 5b48e20..be8a257 100644
--- a/src/file_xv.c
+++ b/src/file_xv.c
@@ -38,7 +38,6 @@ static int header_check_xv(const unsigned char *buffer, const unsigned int buffe
const file_hint_t file_hint_xv= {
.extension="xv",
.description="XV thumbnail image",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_xz.c b/src/file_xz.c
index 943870b..fefc8bd 100644
--- a/src/file_xz.c
+++ b/src/file_xz.c
@@ -35,7 +35,6 @@ static void register_header_check_xz(file_stat_t *file_stat);
const file_hint_t file_hint_xz= {
.extension="xz",
.description="xz Archive",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_z2d.c b/src/file_z2d.c
index 4a95fbd..2e8b585 100644
--- a/src/file_z2d.c
+++ b/src/file_z2d.c
@@ -35,7 +35,6 @@ static void register_header_check_z2d(file_stat_t *file_stat);
const file_hint_t file_hint_z2d= {
.extension="z2d",
.description="ZeroCad",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/file_zip.c b/src/file_zip.c
index 7c796e2..e510013 100644
--- a/src/file_zip.c
+++ b/src/file_zip.c
@@ -59,7 +59,6 @@ static char first_filename[256];
const file_hint_t file_hint_zip= {
.extension="zip",
.description="zip archive including OpenOffice and MSOffice 2007",
- .min_header_distance=0,
.max_filesize=PHOTOREC_MAX_FILE_SIZE,
.recover=1,
.enable_by_default=1,
diff --git a/src/filegen.h b/src/filegen.h
index d65e2f6..2b38921 100644
--- a/src/filegen.h
+++ b/src/filegen.h
@@ -90,9 +90,6 @@ struct file_hint_struct
{
const char *extension;
const char *description;
- const uint64_t min_header_distance;
- /* don't try head_check if min_header_distance >0 and previous_header_distance <= min_header_distance */
- /* needed by tar header */
const uint64_t max_filesize;
const int recover;
const unsigned int enable_by_default;
diff --git a/src/phbs.c b/src/phbs.c
index 2a6dfeb..945ae7e 100644
--- a/src/phbs.c
+++ b/src/phbs.c
@@ -100,12 +100,7 @@ pstatus_t photorec_find_blocksize(struct ph_param *params, const struct ph_optio
{
file_recovery_t file_recovery_new;
file_recovery_new.blocksize=blocksize;
- if(file_recovery.file_stat!=NULL &&
- file_recovery.file_stat->file_hint->min_header_distance > 0 &&
- file_recovery.file_size<=file_recovery.file_stat->file_hint->min_header_distance)
- {
- }
- else if(file_recovery.file_stat!=NULL && file_recovery.file_stat->file_hint==&file_hint_tar &&
+ if(file_recovery.file_stat!=NULL && file_recovery.file_stat->file_hint==&file_hint_tar &&
header_check_tar(buffer-0x200,0x200,0,&file_recovery,&file_recovery_new))
{ /* Currently saving a tar, do not check the data for know header */
}
diff --git a/src/psearchn.c b/src/psearchn.c
index 4e04cb5..865777f 100644
--- a/src/psearchn.c
+++ b/src/psearchn.c
@@ -182,10 +182,6 @@ inline static pstatus_t photorec_check_header(file_recovery_t *file_recovery, st
const unsigned int read_size=(blocksize>65536?blocksize:65536);
file_recovery_t file_recovery_new;
file_recovery_new.blocksize=blocksize;
- if(file_recovery->file_stat!=NULL &&
- file_recovery->file_stat->file_hint->min_header_distance > 0 &&
- file_recovery->file_size<=file_recovery->file_stat->file_hint->min_header_distance)
- return PSTATUS_OK;
if(file_recovery->file_stat!=NULL && file_recovery->file_stat->file_hint==&file_hint_tar &&
header_check_tar(buffer-0x200,0x200, 0, file_recovery, &file_recovery_new))
{ /* Currently saving a tar, do not check the data for know header */
diff --git a/src/qphbs.cpp b/src/qphbs.cpp
index b8b5c41..e0e6438 100644
--- a/src/qphbs.cpp
+++ b/src/qphbs.cpp
@@ -97,12 +97,7 @@ pstatus_t QPhotorec::photorec_find_blocksize(alloc_data_t *list_search_space)
uint64_t old_offset=offset;
{
file_recovery_t file_recovery_new;
- if(file_recovery.file_stat!=NULL &&
- file_recovery.file_stat->file_hint->min_header_distance > 0 &&
- file_recovery.file_size<=file_recovery.file_stat->file_hint->min_header_distance)
- {
- }
- else if(file_recovery.file_stat!=NULL && file_recovery.file_stat->file_hint==&file_hint_tar &&
+ if(file_recovery.file_stat!=NULL && file_recovery.file_stat->file_hint==&file_hint_tar &&
header_check_tar(buffer-0x200,0x200,0,&file_recovery,&file_recovery_new))
{ /* Currently saving a tar, do not check the data for know header */
}
diff --git a/src/qpsearch.cpp b/src/qpsearch.cpp
index cc88f7d..39307e8 100644
--- a/src/qpsearch.cpp
+++ b/src/qpsearch.cpp
@@ -164,12 +164,7 @@ pstatus_t QPhotorec::photorec_aux(alloc_data_t *list_search_space)
{
file_recovery_t file_recovery_new;
file_recovery_new.blocksize=blocksize;
- if(file_recovery.file_stat!=NULL &&
- file_recovery.file_stat->file_hint->min_header_distance > 0 &&
- file_recovery.file_size<=file_recovery.file_stat->file_hint->min_header_distance)
- {
- }
- else if(file_recovery.file_stat!=NULL && file_recovery.file_stat->file_hint==&file_hint_tar &&
+ if(file_recovery.file_stat!=NULL && file_recovery.file_stat->file_hint==&file_hint_tar &&
header_check_tar(buffer-0x200,0x200,0,&file_recovery,&file_recovery_new))
{ /* Currently saving a tar, do not check the data for know header */
if(options->verbose > 1)