aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-08-21 12:05:30 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-08-24 12:23:50 +0200
commitaf387e2199de698fab9f180d68923c65b819be0c (patch)
treed40da4e5f6bc7cdd4ec21f9b9a0221307dffab70 /src
parent444bc82081be0fd371805017a4c97b01cb41c15d (diff)
llist: Add missing const qualifier in llist cast method
The missing const qualifier prevents the llist_empty() C++ wrapper function from being compiled successfully when it is used. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src')
-rw-r--r--src/cxx_linuxlist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cxx_linuxlist.h b/src/cxx_linuxlist.h
index d9b28c4..9a74b3f 100644
--- a/src/cxx_linuxlist.h
+++ b/src/cxx_linuxlist.h
@@ -45,7 +45,7 @@ struct LListHead {
return *static_cast<llist_head *>(static_cast<void *>(this));
}
const llist_head &llist() const {
- return *static_cast<llist_head *>(static_cast<void *>(this));
+ return *static_cast<const llist_head *>(static_cast<const void *>(this));
}
private: