treewide: Run refresh on all packages
[feed/packages.git] / net / open-isns / patches / 02-fix_signed_vs_unsigned.patch
1 From 40eb9ce75518817762a0eac4a93016ab817add89 Mon Sep 17 00:00:00 2001
2 From: Lee Duncan <lduncan@suse.com>
3 Date: Sat, 1 Feb 2020 10:23:04 -0800
4 Subject: [PATCH] Fix 586 compile issue and remove -Werror
5
6 Using -Werror causes any issue to break the build, whereas
7 I'd rather let the build continue and address the issue.
8
9 Also, fixed one signed-vs-unsigned compare for time_t, which
10 shows up only on 586 (32-bit).
11 ---
12 configure.ac | 2 +-
13 isnsdd.c | 2 +-
14 2 files changed, 2 insertions(+), 2 deletions(-)
15
16 --- a/configure.ac
17 +++ b/configure.ac
18 @@ -17,7 +17,7 @@ AC_PATH_PROG(SH, sh)
19 dnl C Compiler features
20 AC_C_INLINE
21 if test "$GCC" = "yes"; then
22 - CFLAGS="-Wall -Werror -Wextra $CFLAGS"
23 + CFLAGS="-Wall -Wextra $CFLAGS"
24 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
25 fi
26
27 --- a/isnsdd.c
28 +++ b/isnsdd.c
29 @@ -401,7 +401,7 @@ check_portal_registration(__attribute__(
30 continue;
31
32 last_modified = isns_object_last_modified(obj);
33 - if (last_modified + 2 * interval > now) {
34 + if ((time_t)(last_modified + 2 * interval) > now) {
35 good_portals++;
36 continue;
37 }