aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/includes/hicn/transport/core/content_object.h
diff options
context:
space:
mode:
Diffstat (limited to 'libtransport/includes/hicn/transport/core/content_object.h')
-rw-r--r--libtransport/includes/hicn/transport/core/content_object.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/libtransport/includes/hicn/transport/core/content_object.h b/libtransport/includes/hicn/transport/core/content_object.h
index a8df1e8e3..f8d95846e 100644
--- a/libtransport/includes/hicn/transport/core/content_object.h
+++ b/libtransport/includes/hicn/transport/core/content_object.h
@@ -43,8 +43,8 @@ class ContentObject : public Packet {
template <typename... Args>
ContentObject(CopyBufferOp op, Args &&...args)
: Packet(op, std::forward<Args>(args)...) {
- if (hicn_data_get_name(format_, packet_start_, name_.getStructReference()) <
- 0) {
+ if (hicn_data_get_name(format_, packet_start_,
+ &name_.getStructReference()) < 0) {
throw errors::MalformedPacketException();
}
}
@@ -52,8 +52,8 @@ class ContentObject : public Packet {
template <typename... Args>
ContentObject(WrapBufferOp op, Args &&...args)
: Packet(op, std::forward<Args>(args)...) {
- if (hicn_data_get_name(format_, packet_start_, name_.getStructReference()) <
- 0) {
+ if (hicn_data_get_name(format_, packet_start_,
+ &name_.getStructReference()) < 0) {
throw errors::MalformedPacketException();
}
}
@@ -65,8 +65,8 @@ class ContentObject : public Packet {
throw errors::MalformedPacketException();
}
- if (hicn_data_get_name(format_, packet_start_, name_.getStructReference()) <
- 0) {
+ if (hicn_data_get_name(format_, packet_start_,
+ &name_.getStructReference()) < 0) {
throw errors::MalformedPacketException();
}
}