From be84ee238f448a5eab596b12efb86efc00f9e89d Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 26 Jan 2008 20:21:59 +0000 Subject: fix more compiler warnings, based on a patch by Rainer Keller git-svn-id: https://svn.gnumonks.org/trunk/librfid@2052 e0336214-984f-0b4b-a45f-81c69e1f0ede --- include/librfid/rfid_asic.h | 2 +- include/librfid/rfid_layer2.h | 2 +- include/librfid/rfid_protocol.h | 2 +- include/librfid/rfid_reader.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/librfid/rfid_asic.h b/include/librfid/rfid_asic.h index 113eb19..8768baf 100644 --- a/include/librfid/rfid_asic.h +++ b/include/librfid/rfid_asic.h @@ -17,7 +17,7 @@ struct rfid_asic_transport { struct rfid_asic_transport_handle { void *data; /* handle to stuff like even lower layers */ - struct rfid_asic_transport *rat; + const struct rfid_asic_transport *rat; }; /* Some implementation-specific data. A reader will specify one of these for diff --git a/include/librfid/rfid_layer2.h b/include/librfid/rfid_layer2.h index 84d4579..45ae953 100644 --- a/include/librfid/rfid_layer2.h +++ b/include/librfid/rfid_layer2.h @@ -76,7 +76,7 @@ struct rfid_layer2_handle { struct iso14443b_handle iso14443b; struct iso15693_handle iso15693; } priv; - struct rfid_layer2 *l2; + const struct rfid_layer2 *l2; }; #endif /* __LIBRFID__ */ diff --git a/include/librfid/rfid_protocol.h b/include/librfid/rfid_protocol.h index 06f704f..ea4dd34 100644 --- a/include/librfid/rfid_protocol.h +++ b/include/librfid/rfid_protocol.h @@ -89,7 +89,7 @@ struct rfid_protocol { struct rfid_protocol_handle { struct rfid_layer2_handle *l2h; - struct rfid_protocol *proto; + const struct rfid_protocol *proto; union { struct tcl_handle tcl; } priv; /* priv has to be last, since diff --git a/include/librfid/rfid_reader.h b/include/librfid/rfid_reader.h index 21b740d..296c66f 100644 --- a/include/librfid/rfid_reader.h +++ b/include/librfid/rfid_reader.h @@ -76,7 +76,7 @@ struct rfid_reader_handle { union { } priv; - struct rfid_reader *reader; + const struct rfid_reader *reader; }; extern struct rfid_reader_handle * -- cgit v1.2.3