From: Florian Weimer <fweimer@redhat.com>
To: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] efitools: Include <strings.h> for the strcasecmp function
Date: Wed, 14 Dec 2022 22:30:26 +0100 [thread overview]
Message-ID: <87pmcllll9.fsf@oldenburg.str.redhat.com> (raw)
Otherwise, an implicit function declaration is the result, and the
code may fail to compile with future compilers.
---
efi-updatevar.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/efi-updatevar.c b/efi-updatevar.c
index 4247105..033d938 100644
--- a/efi-updatevar.c
+++ b/efi-updatevar.c
@@ -11,6 +11,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <strings.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
Related to:
<https://fedoraproject.org/wiki/Changes/PortingToModernC>
<https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
next reply other threads:[~2022-12-14 21:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-14 21:30 Florian Weimer [this message]
2022-12-14 21:43 ` [PATCH] efitools: Include <strings.h> for the strcasecmp function Lukas Wunner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pmcllll9.fsf@oldenburg.str.redhat.com \
--to=fweimer@redhat.com \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.