summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2014-04-25 17:28:36 +0200
committerLinus Nordberg <linus@nordu.net>2014-04-25 17:28:36 +0200
commit0ed59df3a437caaf70f97a03b792e06a6a3c306b (patch)
treea41261c5db9717b92b479c2ef7b936bca8eeef23 /src
parent968300d19b07be2749cb602e400a97167151e0ba (diff)
Add default values in plop_entry.
This makes the fields not able to hold 'undefined' any more. Definitely good for field 'type' and arguably for field 'entry' too, so that a hash over it makes sense.
Diffstat (limited to 'src')
-rw-r--r--src/plop.hrl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plop.hrl b/src/plop.hrl
index a4f2bb6..823e0aa 100644
--- a/src/plop.hrl
+++ b/src/plop.hrl
@@ -8,8 +8,8 @@
-define(PLOP_ENTRY_TYPE_PRECERT, 1).
-define(PLOP_ENTRY_TYPE_TEST, 2).
-record(plop_entry, {
- type :: integer(), % uint16
- entry :: binary()
+ type = 0 :: integer(), % uint16
+ entry = <<>> :: binary()
}).
-type(plop_entry() :: #plop_entry{}).