summaryrefslogtreecommitdiffstats
path: root/src/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hash.c')
-rw-r--r--src/hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash.c b/src/hash.c
index a2d2314b..208f4b6b 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -56,7 +56,7 @@ static void hash_expr_clone(struct expr *new, const struct expr *expr)
new->hash.type = expr->hash.type;
}
-static const struct expr_ops hash_expr_ops = {
+const struct expr_ops hash_expr_ops = {
.type = EXPR_HASH,
.name = "hash",
.print = hash_expr_print,
@@ -73,7 +73,7 @@ struct expr *hash_expr_alloc(const struct location *loc,
{
struct expr *expr;
- expr = expr_alloc(loc, &hash_expr_ops, &integer_type,
+ expr = expr_alloc(loc, EXPR_HASH, &integer_type,
BYTEORDER_HOST_ENDIAN, 4 * BITS_PER_BYTE);
expr->hash.mod = mod;
expr->hash.seed_set = seed_set;