Fix target of assignment not really an lvalue error
[obnox/wireshark/wip.git] / gtk / packet_list_store.h
index 70c1095f3a1578d6aa9e336b9e7ba7552603cd7e..9b279cc0e7efb8664c4e173e5bbd3db336c8879c 100644 (file)
@@ -41,8 +41,8 @@ typedef struct _PacketListRecord PacketListRecord;
 typedef struct _PacketList PacketList;
 typedef struct _PacketListClass PacketListClass;
 
-#define PACKET_LIST_RECORD_GET(rows, pos)      ((PacketListRecord*) g_ptr_array_index((rows), (pos)))
-#define PACKET_LIST_RECORD_SET(rows, pos, item) PACKET_LIST_RECORD_GET((rows), (pos)) = (item)
+#define PACKET_LIST_RECORD_GET(rows, pos) ((PacketListRecord*) g_ptr_array_index((rows), (pos)))
+#define PACKET_LIST_RECORD_SET(rows, pos, item) g_ptr_array_index((rows), (pos)) = (item)
 #define PACKET_LIST_RECORD_APPEND(rows, item) g_ptr_array_add((rows), (item))
 #define PACKET_LIST_RECORD_COUNT(rows) ((rows) ? (rows)->len : 0)
 #define PACKET_LIST_RECORD_INDEX_VALID(rows, idx) ((rows) ? (((guint) (idx)) < (rows)->len) : FALSE)