Commit 9ffcf56a authored by Nils Goroll's avatar Nils Goroll

gen the checksum(s) string once

parent 17c6592b
......@@ -702,7 +702,8 @@ my %special_entries;
## build %common_subkeys
## build @entries, except that not all fields are filled
my %subkeys_count;
my $dbboilerplate = "checksum ".$dbchecksums[0]."\n";
my $dbchecksum = join(", ", @dbchecksums);
my $dbboilerplate = "checksum ".$dbchecksum."\n";
foreach (split(/[\n\r\f]/, ${$dbrefs[0]})) {
if (/^\s*#/) {
$dbboilerplate .= $_."\n";
......@@ -939,7 +940,7 @@ _VCL (F_CLASSIFIER_H, VCL_TOP, <<EOF);
#define DCS_CLASSIFIER_H 1
#include <stdint.h>
#define DCS_CHECKSUM "$dbchecksums[0]"
#define DCS_CHECKSUM "$dbchecksum"
/* tunable */
#define DCS_MAX_NEGMATCH_CAND 32
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment