diff options
author | Dimitri Staessens <[email protected]> | 2023-03-22 12:57:15 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2023-03-24 10:04:53 +0100 |
commit | 51650a6dfcc0abc330200caf1ea89fcb6b8dce8b (patch) | |
tree | c7500822868663da3284c5ce31d70fb5c76999d1 /src/ipcpd/eth | |
parent | b69cb56fdc0343b7c25cc895f9841ff29f01da26 (diff) | |
download | ouroboros-51650a6dfcc0abc330200caf1ea89fcb6b8dce8b.tar.gz ouroboros-51650a6dfcc0abc330200caf1ea89fcb6b8dce8b.zip |
ipcpd: Use consistent function naming
For instance ipcp_udp_* vs eth_ipcp_*. Now all functions are
<type>_ipcp_*.
Als cleans up some minor things.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/ipcpd/eth')
-rw-r--r-- | src/ipcpd/eth/eth.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ipcpd/eth/eth.c b/src/ipcpd/eth/eth.c index 6d9d78ba..15082ee3 100644 --- a/src/ipcpd/eth/eth.c +++ b/src/ipcpd/eth/eth.c @@ -1829,9 +1829,6 @@ int main(int argc, { int i; - if (ipcp_init(argc, argv, ð_ops, THIS_TYPE) < 0) - goto fail_init; - if (eth_data_init() < 0) { #if defined(BUILD_ETH_DIX) log_err("Failed to init eth-llc data."); @@ -1841,6 +1838,9 @@ int main(int argc, goto fail_data_init; } + if (ipcp_init(argc, argv, ð_ops, THIS_TYPE) < 0) + goto fail_init; + if (ipcp_start() < 0) { log_err("Failed to start IPCP."); goto fail_start; @@ -1878,9 +1878,9 @@ int main(int argc, exit(EXIT_SUCCESS); fail_start: - eth_data_fini(); - fail_data_init: ipcp_fini(); fail_init: + eth_data_fini(); + fail_data_init: exit(EXIT_FAILURE); } |