Accepting request 520932 from home:garloff:branches:Base:System

- Mark inline function static.
- This time submit after uploading new source tarball to server.

OBS-URL: https://build.opensuse.org/request/show/520932
OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=35
This commit is contained in:
Kurt Garloff
2017-09-05 04:22:12 +00:00
committed by Git OBS Bridge
parent 5b2cbfcf78
commit 1b7ee0d5d1
3 changed files with 18 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Sep 4 23:25:28 CEST 2017 - kurt@garloff.de
- Mark inline function static.
-------------------------------------------------------------------
Fri Aug 25 15:19:24 CEST 2017 - kurt@garloff.de

View File

@@ -27,6 +27,7 @@ Source0: http://garloff.de/kurt/linux/ddrescue/%{name}-%{version}.tar.bz2
Source1: http://garloff.de/kurt/linux/ddrescue/%{name}-%{version}.tar.bz2.asc
Source2: %{name}.keyring
Source99: %{name}.changes
Patch1: libddr_hash-round-down-static.diff
BuildRequires: autoconf
BuildRequires: libattr-devel
BuildRequires: libfallocate-devel
@@ -112,6 +113,7 @@ data to the decompressor; the plugin is still young and might expose bugs.
%prep
%setup -q
%patch1 -p0
# Remove build time references so build-compare can do its work
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{SOURCE99} '+%%H:%%M')

View File

@@ -0,0 +1,11 @@
--- libddr_hash.c.orig 2017-08-25 09:51:38.170686244 +0200
+++ libddr_hash.c 2017-08-25 17:14:33.308431613 +0200
@@ -398,7 +398,7 @@
#error __WORDSIZE unknown
#endif
-inline int round_down(int val, const int gran)
+static inline int round_down(int val, const int gran)
{
return val-val%gran;
}