[aravis] build: fix header C++ compatibility



commit fa8bb6ca6ac5ae75d46968112d3d67f3d5652ece
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Mon Aug 18 22:20:32 2014 +0200

    build: fix header C++ compatibility

 src/arvgvsp.h |    2 +-
 tests/cpp.cc  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/arvgvsp.h b/src/arvgvsp.h
index 1b2061f..f8e48ba 100644
--- a/src/arvgvsp.h
+++ b/src/arvgvsp.h
@@ -202,7 +202,7 @@ arv_gvsp_packet_get_payload_type (const ArvGvspPacket *packet)
        ArvGvspDataLeader *leader;
 
        leader = (ArvGvspDataLeader *) &packet->data;
-       return g_ntohl (leader->payload_type);
+       return (ArvGvspPayloadType) g_ntohl (leader->payload_type);
 }
 
 static inline guint32
diff --git a/tests/cpp.cc b/tests/cpp.cc
index 7bd4a70..0c17160 100644
--- a/tests/cpp.cc
+++ b/tests/cpp.cc
@@ -1,6 +1,6 @@
 #include <arv.h>
 
-/* Dump test program, just to make sure aravis headers are c++ compatible */
+/* Dumb test program, just to make sure aravis headers are c++ compatible */
 
 int
 main (int argc, char **argv)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]