src/main.c (main): Remove unused variable

(cherry picked from commit b3b99e4369cb12c0974ce52ce376e33d26e36e0d)
This commit is contained in:
xingwei 2023-06-17 03:51:31 +00:00 committed by openeuler-sync-bot
parent 6d8e703586
commit e2aa3d001f
2 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,21 @@
From 59d08d32902e3f7531ea74292b00a8556a975775 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen@gmx.de>
Date: Sun, 20 Mar 2022 20:44:32 +0100
Subject: [PATCH] * src/main.c (main): Remove unused variable
diff --git a/src/main.c b/src/main.c
index c43671ae..0c4e7d05 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1361,7 +1361,6 @@ main (int argc, char **argv)
char *p;
int i, ret, longindex;
int nurls;
- int retconf;
int argstring_length;
bool use_userconfig = false;
bool noconfig = false;
--
2.33.0

View File

@ -1,6 +1,6 @@
Name: wget Name: wget
Version: 1.21.2 Version: 1.21.2
Release: 2 Release: 3
Summary: A package for retrieving files using HTTP, HTTPS, FTP and FTPS the most widely-used Internet protocols. Summary: A package for retrieving files using HTTP, HTTPS, FTP and FTPS the most widely-used Internet protocols.
License: GPLv3+ License: GPLv3+
Url: http://www.gnu.org/software/wget/ Url: http://www.gnu.org/software/wget/
@ -8,6 +8,7 @@ Source: https://ftp.gnu.org/gnu/wget/wget-%{version}.tar.gz
Patch0: backport-wget-1.21-ssl-init-output.patch Patch0: backport-wget-1.21-ssl-init-output.patch
Patch1: backport-wget-1.21-segfault.patch Patch1: backport-wget-1.21-segfault.patch
Patch2: backport-src-main.c-main-Remove-unused-variable.patch
Provides: webclient bundled(gnulib) Provides: webclient bundled(gnulib)
BuildRequires: perl-HTTP-Daemon python3 libuuid-devel perl-podlators libpsl-devel libmetalink-devel BuildRequires: perl-HTTP-Daemon python3 libuuid-devel perl-podlators libpsl-devel libmetalink-devel
@ -55,6 +56,12 @@ make check
%{_infodir}/* %{_infodir}/*
%changelog %changelog
* Sat Jun 17 2023 xingwei <xingwei14@h-parters.com> - 1.21.2-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:src/main.c (main): Remove unused variable
* Sat Oct 22 2022 gaihuiying <eaglegai@163.com> - 1.21.2-2 * Sat Oct 22 2022 gaihuiying <eaglegai@163.com> - 1.21.2-2
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA