diff options
author | Neal H. Walfield <neal@pep.foundation> | 2018-10-08 22:23:18 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2018-10-09 09:38:30 +0200 |
commit | 482f166f799d15601c5739593189b397f20abccd (patch) | |
tree | 41ffdb03f17f30182f5110f525d20ed1a325544e /ffi | |
parent | db3f4d052592249fb4b055bcd669b30d876de3d6 (diff) |
openpgp: Drop redundant recursive_depth field.
- The packet parser's recursive depth can be computed from the path,
which we now track. As such, don't track the recursive depth
separately, just derive it from the path.
Diffstat (limited to 'ffi')
-rw-r--r-- | ffi/src/openpgp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi/src/openpgp.rs b/ffi/src/openpgp.rs index 19525422..3d808584 100644 --- a/ffi/src/openpgp.rs +++ b/ffi/src/openpgp.rs @@ -1241,7 +1241,7 @@ pub extern "system" fn sq_packet_parser_recursion_depth (pp: Option<&PacketParser>) -> uint8_t { let pp = pp.expect("PacketParser is NULL"); - pp.recursion_depth + pp.recursion_depth() as u8 } /// Finishes parsing the current packet and starts parsing the |