File: glibc-2.43.patch

package info (click to toggle)
liboauth2 2.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,408 kB
  • sloc: ansic: 20,555; makefile: 190; sh: 13
file content (35 lines) | stat: -rw-r--r-- 992 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Description: disable memcached and redis cache tests
Author: Nicolas Mora <babelouest@debian.org>
Forwarded: https://github.com/OpenIDC/liboauth2/issues/70
---
From 155b93b2efd1e8b0022c9bdad2297a2a670dc29c Mon Sep 17 00:00:00 2001
From: Hans Zandbelt <hans.zandbelt@openidc.com>
Date: Tue, 3 Feb 2026 09:06:10 +0100
Subject: [PATCH] code: assign strstr to char instead of const char

to compile with globc 2.43 see #70; thanks @babelouest

Signed-off-by: Hans Zandbelt <hans.zandbelt@openidc.com>
---
--- a/src/jose.c
+++ b/src/jose.c
@@ -993,7 +993,7 @@
 {
 	char *input = NULL, *result = NULL;
 	json_t *json = NULL;
-	char *p = NULL;
+	const char *p = NULL;
 	size_t result_len;
 	char *rv = NULL;
 
--- a/test/check_openidc.c
+++ b/test/check_openidc.c
@@ -817,7 +817,7 @@
 {
 	bool rc = false;
 	const char *location = NULL;
-	char *state = NULL;
+	const char *state = NULL;
 
 	ck_assert_ptr_ne(NULL, response);
 	ck_assert_uint_eq(oauth2_http_response_status_code_get(_log, response),