25 lines
782 B
Diff
25 lines
782 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Nicolas Frayer <nfrayer@redhat.com>
|
|
Date: Mon, 22 Jun 2026 20:58:03 +0200
|
|
Subject: [PATCH] Add const qualifier to variable
|
|
|
|
Add const to a variable initialized with using strrchr.
|
|
|
|
Signed-off-by: Nicolas Frayer <nfrayer@redhat.com>
|
|
---
|
|
src/pesum.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/pesum.c b/src/pesum.c
|
|
index e4ddaf86d7fa..5d7dcb929eec 100644
|
|
--- a/src/pesum.c
|
|
+++ b/src/pesum.c
|
|
@@ -141,7 +141,7 @@ main(int argc, char *argv[])
|
|
while ((infile = poptGetArg(optCon)) != NULL) {
|
|
pesign_context *ctxp = NULL;
|
|
|
|
- char *ext = strrchr(infile, '.');
|
|
+ const char *ext = strrchr(infile, '.');
|
|
if (ext && strcmp(ext, ".ko") == 0)
|
|
fmt = FORMAT_KERNEL_MODULE;
|
|
|