foolsm: update to 1.0.21
[feed/packages.git] / net / atlas-probe / patches / 005-Mute-some-no-previous-prototype-compilation-warning.patch
1 From 25f131be221c5b2f8cb4f0c2a32f522415bb3bbf Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Mon, 17 Oct 2022 20:15:30 +0200
4 Subject: [PATCH] Mute some no previous prototype compilation warning
5
6 Mute some no previous prototype compilation warning found in
7 atlas_unsafe, rxtxrpt_main and route_set_flags.
8
9 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
10 ---
11 include/libbb.h | 2 ++
12 libbb/route_set_flags.c | 2 ++
13 2 files changed, 4 insertions(+)
14
15 --- a/include/libbb.h
16 +++ b/include/libbb.h
17 @@ -463,6 +463,7 @@ char *is_suffixed_with(const char *strin
18 #define ATLAS_TIMESYNC_FILE_REL ATLAS_DATA_NEW_REL "/timesync.vol"
19 #define ATLAS_FUZZING_REL "data"
20
21 +extern int atlas_unsafe(void);
22 extern char *rebased_validated_filename(const char *path, const char *prefix);
23 extern char *rebased_validated_dir(const char *path, const char *prefix);
24 extern int validate_atlas_id(const char *atlas_id);
25 @@ -484,6 +485,7 @@ extern void read_response(int fd, int ty
26 extern void read_response_file(FILE *file, int type, size_t *sizep,
27 void *data);
28 extern void write_response(FILE *file, int type, size_t size, void *data);
29 +extern int rxtxrpt_main(int argc, char *argv[]);
30
31 int ndelay_on(int fd) FAST_FUNC;
32 int ndelay_off(int fd) FAST_FUNC;
33 --- a/libbb/route_set_flags.c
34 +++ b/libbb/route_set_flags.c
35 @@ -1,6 +1,8 @@
36 #include <platform.h>
37 #include <net/route.h>
38
39 +#include "libbb.h"
40 +
41 static const
42 IF_NOT_FEATURE_IPV6(uint16_t)
43 IF_FEATURE_IPV6(unsigned)