diff options
Diffstat (limited to 'meta/recipes-devtools/rsync/files/0001-Add-missing-prototypes-to-function-declarations.patch')
-rw-r--r-- | meta/recipes-devtools/rsync/files/0001-Add-missing-prototypes-to-function-declarations.patch | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/meta/recipes-devtools/rsync/files/0001-Add-missing-prototypes-to-function-declarations.patch b/meta/recipes-devtools/rsync/files/0001-Add-missing-prototypes-to-function-declarations.patch index 629b786d62..474d82db22 100644 --- a/meta/recipes-devtools/rsync/files/0001-Add-missing-prototypes-to-function-declarations.patch +++ b/meta/recipes-devtools/rsync/files/0001-Add-missing-prototypes-to-function-declarations.patch | |||
@@ -1,6 +1,6 @@ | |||
1 | From 704a240443ca5d8024cc3b01ae6c1440fa41f54a Mon Sep 17 00:00:00 2001 | 1 | From 785c0072c80c2f6e0839478453cf65fdeac15da0 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Tue, 16 Aug 2022 23:42:24 -0700 | 3 | Date: Mon, 29 Aug 2022 19:53:28 -0700 |
4 | Subject: [PATCH] Add missing prototypes to function declarations | 4 | Subject: [PATCH] Add missing prototypes to function declarations |
5 | 5 | ||
6 | With Clang 15+ compiler -Wstrict-prototypes is triggering warnings which | 6 | With Clang 15+ compiler -Wstrict-prototypes is triggering warnings which |
@@ -18,8 +18,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
18 | --- | 18 | --- |
19 | checksum.c | 2 +- | 19 | checksum.c | 2 +- |
20 | exclude.c | 2 +- | 20 | exclude.c | 2 +- |
21 | hlink.c | 2 +- | 21 | hlink.c | 3 +-- |
22 | lib/compat.c | 1 + | ||
23 | lib/pool_alloc.c | 2 +- | 22 | lib/pool_alloc.c | 2 +- |
24 | log.c | 2 +- | 23 | log.c | 2 +- |
25 | main.c | 2 +- | 24 | main.c | 2 +- |
@@ -27,7 +26,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
27 | zlib/crc32.c | 2 +- | 26 | zlib/crc32.c | 2 +- |
28 | zlib/trees.c | 2 +- | 27 | zlib/trees.c | 2 +- |
29 | zlib/zutil.c | 4 ++-- | 28 | zlib/zutil.c | 4 ++-- |
30 | 11 files changed, 13 insertions(+), 12 deletions(-) | 29 | 10 files changed, 12 insertions(+), 13 deletions(-) |
31 | 30 | ||
32 | diff --git a/checksum.c b/checksum.c | 31 | diff --git a/checksum.c b/checksum.c |
33 | index fb8c0a0..174c28c 100644 | 32 | index fb8c0a0..174c28c 100644 |
@@ -56,30 +55,19 @@ index adc82e2..79f5a82 100644 | |||
56 | if (partial_string_buf) { | 55 | if (partial_string_buf) { |
57 | free(partial_string_buf); | 56 | free(partial_string_buf); |
58 | diff --git a/hlink.c b/hlink.c | 57 | diff --git a/hlink.c b/hlink.c |
59 | index 66810a3..aea142b 100644 | 58 | index 66810a3..6511dfb 100644 |
60 | --- a/hlink.c | 59 | --- a/hlink.c |
61 | +++ b/hlink.c | 60 | +++ b/hlink.c |
62 | @@ -117,7 +117,7 @@ static void match_gnums(int32 *ndx_list, int ndx_count) | 61 | @@ -117,8 +117,7 @@ static void match_gnums(int32 *ndx_list, int ndx_count) |
63 | struct ht_int32_node *node = NULL; | 62 | struct ht_int32_node *node = NULL; |
64 | int32 gnum, gnum_next; | 63 | int32 gnum, gnum_next; |
65 | 64 | ||
66 | - qsort(ndx_list, ndx_count, sizeof ndx_list[0], (int (*)()) hlink_compare_gnum); | 65 | - qsort(ndx_list, ndx_count, sizeof ndx_list[0], (int (*)()) hlink_compare_gnum); |
66 | - | ||
67 | + qsort(ndx_list, ndx_count, sizeof ndx_list[0], (int (*)(const void *, const void *)) hlink_compare_gnum); | 67 | + qsort(ndx_list, ndx_count, sizeof ndx_list[0], (int (*)(const void *, const void *)) hlink_compare_gnum); |
68 | |||
69 | for (from = 0; from < ndx_count; from++) { | 68 | for (from = 0; from < ndx_count; from++) { |
70 | file = hlink_flist->sorted[ndx_list[from]]; | 69 | file = hlink_flist->sorted[ndx_list[from]]; |
71 | diff --git a/lib/compat.c b/lib/compat.c | 70 | gnum = F_HL_GNUM(file); |
72 | index 513d79b..89b337e 100644 | ||
73 | --- a/lib/compat.c | ||
74 | +++ b/lib/compat.c | ||
75 | @@ -19,6 +19,7 @@ | ||
76 | * with this program; if not, visit the http://fsf.org website. | ||
77 | */ | ||
78 | |||
79 | +#include <sys/time.h> | ||
80 | #include "rsync.h" | ||
81 | #include "itypes.h" | ||
82 | |||
83 | diff --git a/lib/pool_alloc.c b/lib/pool_alloc.c | 71 | diff --git a/lib/pool_alloc.c b/lib/pool_alloc.c |
84 | index a1a7245..4eae062 100644 | 72 | index a1a7245..4eae062 100644 |
85 | --- a/lib/pool_alloc.c | 73 | --- a/lib/pool_alloc.c |
@@ -180,3 +168,6 @@ index bbba7b2..61f8dc9 100644 | |||
180 | { | 168 | { |
181 | uLong flags; | 169 | uLong flags; |
182 | 170 | ||
171 | -- | ||
172 | 2.37.2 | ||
173 | |||