summaryrefslogtreecommitdiff
path: root/pkg/msmtp/patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-04-14 21:37:14 -0700
committerMichael Forney <mforney@mforney.org>2020-04-14 21:43:53 -0700
commit575006e3d7ce2f92e1fb3e75813d144819851922 (patch)
tree62c2e930bf9c51251eb4a380e02746debd7baef6 /pkg/msmtp/patch
parent35d859bb7b5b8c809361a9762aab5045ccd5ca35 (diff)
msmtp: Update to 1.8.8
Diffstat (limited to 'pkg/msmtp/patch')
-rw-r--r--pkg/msmtp/patch/0001-Remove-unnecessary-check-for-sizeof-long-long.patch (renamed from pkg/msmtp/patch/0001-Use-_Static_assert-instead-of-checking-for-size-of-l.patch)21
1 files changed, 11 insertions, 10 deletions
diff --git a/pkg/msmtp/patch/0001-Use-_Static_assert-instead-of-checking-for-size-of-l.patch b/pkg/msmtp/patch/0001-Remove-unnecessary-check-for-sizeof-long-long.patch
index 3309425c..eac0fdd4 100644
--- a/pkg/msmtp/patch/0001-Use-_Static_assert-instead-of-checking-for-size-of-l.patch
+++ b/pkg/msmtp/patch/0001-Remove-unnecessary-check-for-sizeof-long-long.patch
@@ -1,15 +1,16 @@
-From f42d6ab0fa846b265b6d96be7db05ddcb7cc30dc Mon Sep 17 00:00:00 2001
+From b6441967d311b6d62f5936ff346293505d5f0261 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Fri, 13 May 2016 23:01:44 -0700
-Subject: [PATCH] Use _Static_assert instead of checking for size of long long
+Subject: [PATCH] Remove unnecessary check for sizeof(long long)
+The C standard guarantees that its maximum value is at least 2^63 - 1.
---
configure.ac | 1 -
- src/conf.c | 4 +---
- 2 files changed, 1 insertion(+), 4 deletions(-)
+ src/conf.c | 4 ----
+ 2 files changed, 5 deletions(-)
diff --git a/configure.ac b/configure.ac
-index f3cea01..b177e0e 100644
+index b3b0fa1..2c1aef7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,7 +50,6 @@ AC_CHECK_HEADERS([sysexits.h netdb.h arpa/inet.h sys/socket.h sys/wait.h netinet
@@ -21,20 +22,20 @@ index f3cea01..b177e0e 100644
dnl Unfortunately AC_SEARCH_LIBS([res_query], [resolv]) does not work because we
dnl apparently need to include the appropriate header files, so we use a double
diff --git a/src/conf.c b/src/conf.c
-index ab44daa..8a95f1f 100644
+index a0e3eb3..d5c9306 100644
--- a/src/conf.c
+++ b/src/conf.c
-@@ -36,9 +36,7 @@
+@@ -36,10 +36,6 @@
#include <ctype.h>
#include <errno.h>
-#if (SIZEOF_LONG_LONG * CHAR_BIT) < 64
-# error "long long has fewer than 64 bits"
-#endif
-+_Static_assert(sizeof(long long) * CHAR_BIT >= 64, "long long has fewer than 64 bits");
-
+-
#include "gettext.h"
#define _(string) gettext(string)
+
--
-2.21.0
+2.26.0