gentoo/sys-auth/nss-pam-ldapd/files/nss-pam-ldapd-0.9.13-c23.patch
Sam James ff94d3a3df
sys-auth/nss-pam-ldapd: fix build w/ c23
Closes: https://bugs.gentoo.org/944424
Signed-off-by: Sam James <sam@gentoo.org>
2025-05-03 06:23:26 +01:00

27 lines
785 B
Diff

https://bugs.gentoo.org/944424
https://github.com/arthurdejong/nss-pam-ldapd/commit/8ddb983a546f632986a84a784c4625110f7782a2
From 8ddb983a546f632986a84a784c4625110f7782a2 Mon Sep 17 00:00:00 2001
From: Arthur de Jong <arthur@arthurdejong.org>
Date: Sun, 23 Feb 2025 15:22:38 +0100
Subject: [PATCH] Fix variable name (bool) which is a keyword in C23
Closes https://bugs.debian.org/1097481
--- a/nslcd/cfg.c
+++ b/nslcd/cfg.c
@@ -207,10 +207,10 @@ static int get_boolean(const char *filename, int lnr,
return parse_boolean(filename, lnr, token);
}
-static const char *print_boolean(int bool)
+static const char *print_boolean(int value)
{
- if (bool) return "yes";
- else return "no";
+ if (value) return "yes";
+ else return "no";
}
#define TIME_MINUTES 60