openbsd-ports/net/lftp/patches/patch-lib_vasnprintf_c

23 lines
797 B
Plaintext
Raw Normal View History

2011-10-23 06:28:56 -04:00
$OpenBSD: patch-lib_vasnprintf_c,v 1.2 2011/10/23 10:28:56 sthen Exp $
2011-05-03 20:59:30 -04:00
Initialize variable e
2011-10-23 06:28:56 -04:00
--- lib/vasnprintf.c.orig Thu Oct 20 08:39:13 2011
+++ lib/vasnprintf.c Fri Oct 21 15:05:07 2011
@@ -1294,7 +1294,7 @@ scale10_round_decimal_decoded (int e, mpn_t m, void *m
2011-05-03 20:59:30 -04:00
static char *
scale10_round_decimal_long_double (long double x, int n)
{
- int e IF_LINT(= 0);
+ int e = 0;
mpn_t m;
void *memory = decode_long_double (x, &e, &m);
return scale10_round_decimal_decoded (e, m, memory, n);
2011-10-23 06:28:56 -04:00
@@ -1312,7 +1312,7 @@ scale10_round_decimal_long_double (long double x, int
2011-05-03 20:59:30 -04:00
static char *
scale10_round_decimal_double (double x, int n)
{
- int e IF_LINT(= 0);
+ int e = 0;
mpn_t m;
void *memory = decode_double (x, &e, &m);
return scale10_round_decimal_decoded (e, m, memory, n);