1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Update mptcpd to v0.9 and simplify patch

This commit is contained in:
Florian Karuhtz 2022-05-20 16:49:04 +02:00
parent eedbfc56b7
commit 7a2e7ae1e9
3 changed files with 28 additions and 172 deletions

View file

@ -0,0 +1,16 @@
--- a/src/error.h
+++ b/src/error.h
@@ -0,0 +1,13 @@
+#ifndef _ERROR_H
+#define _ERROR_H 1
+
+#include <stdio.h>
+#include <stdlib.h>
+
+// mimic the behaviour of https://man7.org/linux/man-pages/man3/error.3.html
+void error(int status, int errnum, const char *format, ...)
+{
+ fprintf(stderr, "Error %d: %s", errnum, format);
+ if (status != 0) exit(status);
+}
+#endif