Fix build due to -Werror

This commit is contained in:
Simo Sorce 2021-07-12 08:15:57 -04:00
parent a5c9c9e34b
commit 3461a3d164
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff -uPr libkcapi-1.3.0/lib/doc/bin/docproc.c libkcapi-1.3.0.werror/lib/doc/bin/docproc.c
--- libkcapi-1.3.0/lib/doc/bin/docproc.c 2021-04-18 11:55:57.000000000 -0400
+++ libkcapi-1.3.0.werror/lib/doc/bin/docproc.c 2021-07-12 08:13:21.812438118 -0400
@@ -361,7 +361,8 @@
{
char *vec[4]; /* kerneldoc -list file NULL */
pid_t pid;
- ssize_t ret, i, count, start;
+ ssize_t ret, i, count;
+ unsigned int start;
char real_filename[PATH_MAX + 1];
int pipefd[2];
char *data, *str;

View File

@ -135,6 +135,8 @@ Source1: https://www.chronox.de/%{name}/%{name}-%{version}.tar.xz.asc
Source2: sha512hmac-openssl.sh
Source3: fipshmac-openssl.sh
Patch1: 001-libkcapi-1.3.0-werror.patch
BuildRequires: bash
BuildRequires: coreutils
BuildRequires: gcc