diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-01-20 09:52:28 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-21 12:52:53 +0000 |
commit | 2dc22abe4a4f0e1ed390cd1e8acdcc176b0a3874 (patch) | |
tree | 138728c6e08a95b48355878de84f25a551c87b84 /meta/recipes-extended | |
parent | d697b4ca25c561604969e0f758a454725c186300 (diff) | |
download | poky-2dc22abe4a4f0e1ed390cd1e8acdcc176b0a3874.tar.gz |
tcp-wrappers: Remove redundant forward declarations
fgets is already in stdio.h, and it can confuse the compilers when using
fortified headers, therefore remove the declarations
(From OE-Core rev: 91bb451f60cc62bf6c25a7c36aabc0398729bcf0)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/0001-Remove-fgets-extern-declaration.patch | 43 | ||||
-rw-r--r-- | meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb | 1 |
2 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/0001-Remove-fgets-extern-declaration.patch b/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/0001-Remove-fgets-extern-declaration.patch new file mode 100644 index 0000000000..88c8d9cae7 --- /dev/null +++ b/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/0001-Remove-fgets-extern-declaration.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 24d10919b4bc5e37a2d80b274d2cd2ee77b03549 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 13 Jan 2020 14:25:47 -0800 | ||
4 | Subject: [PATCH] Remove fgets() extern declaration | ||
5 | |||
6 | These sources already include <stdio.h> which should bring the correct | ||
7 | declaration | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | hosts_access.c | 1 - | ||
13 | misc.c | 2 -- | ||
14 | 2 files changed, 3 deletions(-) | ||
15 | |||
16 | diff --git a/hosts_access.c b/hosts_access.c | ||
17 | index 329b35e..0133e5e 100644 | ||
18 | --- a/hosts_access.c | ||
19 | +++ b/hosts_access.c | ||
20 | @@ -44,7 +44,6 @@ static char sccsid[] = "@(#) hosts_access.c 1.21 97/02/12 02:13:22"; | ||
21 | #include <netdb.h> | ||
22 | #endif | ||
23 | |||
24 | -extern char *fgets(); | ||
25 | extern int errno; | ||
26 | |||
27 | #ifndef INADDR_NONE | ||
28 | diff --git a/misc.c b/misc.c | ||
29 | index 74ca319..9a5e73a 100644 | ||
30 | --- a/misc.c | ||
31 | +++ b/misc.c | ||
32 | @@ -18,8 +18,6 @@ static char sccsic[] = "@(#) misc.c 1.2 96/02/11 17:01:29"; | ||
33 | |||
34 | #include "tcpd.h" | ||
35 | |||
36 | -extern char *fgets(); | ||
37 | - | ||
38 | #ifndef INADDR_NONE | ||
39 | #define INADDR_NONE (-1) /* XXX should be 0xffffffff */ | ||
40 | #endif | ||
41 | -- | ||
42 | 2.24.1 | ||
43 | |||
diff --git a/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb b/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb index bd0c84c242..e903b9db14 100644 --- a/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb +++ b/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb | |||
@@ -49,6 +49,7 @@ SRC_URI = "http://ftp.porcupine.org/pub/security/tcp_wrappers_${PV}.tar.gz \ | |||
49 | file://0001-Fix-build-with-clang.patch \ | 49 | file://0001-Fix-build-with-clang.patch \ |
50 | file://fix_warnings.patch \ | 50 | file://fix_warnings.patch \ |
51 | file://fix_warnings2.patch \ | 51 | file://fix_warnings2.patch \ |
52 | file://0001-Remove-fgets-extern-declaration.patch \ | ||
52 | " | 53 | " |
53 | 54 | ||
54 | SRC_URI[md5sum] = "e6fa25f71226d090f34de3f6b122fb5a" | 55 | SRC_URI[md5sum] = "e6fa25f71226d090f34de3f6b122fb5a" |