From 8f85f14f92a9d751fa6ee30cfa3971db2af7ec64 Mon Sep 17 00:00:00 2001 From: Vlad-Gabriel Serbu Date: Thu, 11 Jun 2026 10:57:07 +0100 Subject: [PATCH] ami: Fix ami_parse_bdf() discarding const from strchr() result Signed-off-by: Vlad-Gabriel Serbu --- sw/AMI/api/src/ami.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/AMI/api/src/ami.c b/sw/AMI/api/src/ami.c index fe89526..cec4ee4 100755 --- a/sw/AMI/api/src/ami.c +++ b/sw/AMI/api/src/ami.c @@ -383,7 +383,7 @@ uint16_t ami_parse_bdf(const char *bdf) int ret = 0; /* Need to determine if the user passed in a PCI domain. */ - char *c = NULL; + const char *c = NULL; if (!bdf) return ret;