Skip to content
Snippets Groups Projects
Commit ef17cd31 authored by Matthew Fernandez's avatar Matthew Fernandez Committed by Adrian Danis
Browse files

libsel4: Avoid implicit pointer coercion from 0.

Comparing a pointer against a literal without an explicit cast is not supported
by the C parser.

JIRA: VER-429
parent 138e8304
No related branches found
No related tags found
No related merge requests found
......@@ -85,15 +85,15 @@ static inline void
seL4_GetCapReceivePath(seL4_CPtr* receiveCNode, seL4_CPtr* receiveIndex, seL4_Word* receiveDepth)
{
seL4_IPCBuffer* ipcbuffer = seL4_GetIPCBuffer();
if (receiveCNode != 0) {
if (receiveCNode != (void*)0) {
*receiveCNode = ipcbuffer->receiveCNode;
}
if (receiveIndex != 0) {
if (receiveIndex != (void*)0) {
*receiveIndex = ipcbuffer->receiveIndex;
}
if (receiveDepth != 0) {
if (receiveDepth != (void*)0) {
*receiveDepth = ipcbuffer->receiveDepth;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment