summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2008-01-26 20:21:59 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2008-01-26 20:21:59 +0000
commitbe84ee238f448a5eab596b12efb86efc00f9e89d (patch)
treedc6be254302300e2b61579d0e0ce2274100ebbef /include
parent7cf71fab95056b3c812b21247a24bab74678980b (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/librfid/rfid_asic.h2
-rw-r--r--include/librfid/rfid_layer2.h2
-rw-r--r--include/librfid/rfid_protocol.h2
-rw-r--r--include/librfid/rfid_reader.h2
4 files changed, 4 insertions, 4 deletions
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 *
personal git repositories of Harald Welte. Your mileage may vary