gentoo-ebuilds/mail-mta/sendmail/files/sendmail-8.18.1-c23-sm_strtoll.patch
Cristian Othón Martínez Vera 37d3847717
mail-mta/sendmail: complete c23/gcc-15 fix
Bug: https://bugs.gentoo.org/944460
Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx>
Part-of: https://github.com/gentoo/gentoo/pull/41539
Closes: https://github.com/gentoo/gentoo/pull/41539
Signed-off-by: Sam James <sam@gentoo.org>
2025-04-24 19:14:38 +01:00

29 lines
681 B
Diff

Bug: https://bugs.gentoo.org/944460
--- a/libsm/vfscanf.c
+++ b/libsm/vfscanf.c
@@ -240,13 +240,13 @@
/* FALLTHROUGH */
case 'd':
c = CT_INT;
- ccfn = (ULONGLONG_T (*)())sm_strtoll;
+ ccfn = (ULONGLONG_T (*)(const char *, char **, int))sm_strtoll;
base = 10;
break;
case 'i':
c = CT_INT;
- ccfn = (ULONGLONG_T (*)())sm_strtoll;
+ ccfn = (ULONGLONG_T (*)(const char *, char **, int))sm_strtoll;
base = 0;
break;
@@ -324,7 +324,7 @@
if (isupper(c))
flags |= LONG;
c = CT_INT;
- ccfn = (ULONGLONG_T (*)()) sm_strtoll;
+ ccfn = (ULONGLONG_T (*)(const char *, char **, int)) sm_strtoll;
base = 10;
break;
}