summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2019-03-03 19:08:48 +0100
committerSander Vrijders <[email protected]>2019-03-04 08:57:57 +0100
commite87f2b683446fe424dc5e8fed60456240e080562 (patch)
treef61d89c35ded13d743e207b31ce68546ca53d9e1 /include
parente00c9b13acad23e14df9d5cf4c7868dfd6e1bc55 (diff)
downloadouroboros-e87f2b683446fe424dc5e8fed60456240e080562.tar.gz
ouroboros-e87f2b683446fe424dc5e8fed60456240e080562.zip
ipcpd: Refactor create_r and flow_req_arr
The API calls for the IPCP to inform the IRMd of IPCP creation and incoming flow request had the pid_t in the call. This pid_t is removed and the getpid() call is now placed inside the function. Also refactors the cleanup for the main() functions of some of the lower IPCPs. Signed-off-by: Dimitri Staessens <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/ipcp-dev.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/ouroboros/ipcp-dev.h b/include/ouroboros/ipcp-dev.h
index 923794d0..bdeb75d6 100644
--- a/include/ouroboros/ipcp-dev.h
+++ b/include/ouroboros/ipcp-dev.h
@@ -26,11 +26,9 @@
#ifndef OUROBOROS_IPCP_DEV_H
#define OUROBOROS_IPCP_DEV_H
-int ipcp_create_r(pid_t pid,
- int result);
+int ipcp_create_r(int result);
-int ipcp_flow_req_arr(pid_t pid,
- const uint8_t * dst,
+int ipcp_flow_req_arr(const uint8_t * dst,
size_t len,
qosspec_t qs);