0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-12 02:21:14 +00:00
packages/net/eoip/patches/100-add_LF_to_pidfile.patch
Rosen Penev 539858ad75 eoip: fix compilation with gcc14
Wrong pointer and missing header.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-05-14 16:39:10 -07:00

12 lines
249 B
Diff

--- a/eoip.c
+++ b/eoip.c
@@ -431,7 +431,7 @@ int main(int argc, char **argv)
exit(1);
mfd = fopen(pidfile, "w");
- fprintf(mfd,"%d", getpid());
+ fprintf(mfd,"%d\n", getpid());
fclose(mfd);
/* structure of Mikrotik EoIP: