File: gcc15.patch

package info (click to toggle)
otpw 1.5-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 444 kB
  • sloc: ansic: 3,862; makefile: 303
file content (27 lines) | stat: -rw-r--r-- 1,077 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
Description: make it compile with gcc15
Index: otpw/otpw-gen.c
===================================================================
--- otpw.orig/otpw-gen.c	2025-09-07 11:03:19.894702270 +0200
+++ otpw/otpw-gen.c	2025-09-07 11:14:50.467164230 +0200
@@ -56,7 +56,7 @@
  * are meant to keep them secret anyway.
  */
 
-char word[2048][4] = {
+__attribute__((nonstring)) char word[2048][4] = {
   "abel","able","ably","acer","aces","acet","ache","acid","acne","acre",
   "acts","adam","adds","aden","afar","aged","ages","aide","aids","aims",
   "airs","airy","ajar","akin","alan","alas","alec","ales","alex","alix",
Index: otpw/otpw.h
===================================================================
--- otpw.orig/otpw.h	2025-09-07 11:03:19.894702270 +0200
+++ otpw/otpw.h	2025-09-07 11:16:48.123246761 +0200
@@ -98,7 +98,7 @@
  * higher than otpw_autopseudouser_maxuid. If so, malloc and set
  * otpw_pseudouser accordingly.
  */
-int otpw_set_pseudouser();
+int otpw_set_pseudouser(struct otpw_pwdbuf **pseudouser);
 
 /* some global variables with configuration options */