Blame SOURCES/0001-Drop-superfluous-global-variable-definitions.patch

3f7af7
From b65152ebc03832972115e6d98e50cb6190d01793 Mon Sep 17 00:00:00 2001
3f7af7
From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= <olysonek@redhat.com>
3f7af7
Date: Mon, 3 Feb 2020 13:18:13 +0100
3f7af7
Subject: [PATCH 1/3] Drop superfluous global variable definitions
3f7af7
3f7af7
The file minicom.c, by including the minicom.h header, already defines
3f7af7
the global variables 'dial_user' and 'dial_pass'. The object file
3f7af7
minicom.o is always linked to dial.o. Thus the definitions in dial.c
3f7af7
can be dropped.
3f7af7
3f7af7
This fixes linking with gcc 10 which uses -fno-common by default,
3f7af7
disallowing multiple global variable definitions.
3f7af7
---
3f7af7
 src/dial.c | 2 --
3f7af7
 1 file changed, 2 deletions(-)
3f7af7
3f7af7
diff --git a/src/dial.c b/src/dial.c
3f7af7
index eada5ee..d9d481f 100644
3f7af7
--- a/src/dial.c
3f7af7
+++ b/src/dial.c
3f7af7
@@ -146,8 +146,6 @@ static int newtype;
3f7af7
 /* Access to ".dialdir" denied? */
3f7af7
 static int dendd = 0;
3f7af7
 static char *tagged;
3f7af7
-char *dial_user;
3f7af7
-char *dial_pass;
3f7af7
 
3f7af7
 /* Change the baud rate.  Treat all characters in the given array as if
3f7af7
  * they were key presses within the comm parameters dialog (C-A P) and
3f7af7
-- 
3f7af7
2.24.1
3f7af7