View | Details | Raw Unified | Return to bug 268277
Collapse All | Expand All

(-)b/textproc/scdoc/files/patch-include_str.h (+11 lines)
Added Link Here
1
--- include/str.h.orig	2021-11-13 08:04:45 UTC
2
+++ include/str.h
3
@@ -7,7 +7,7 @@ struct str {
4
 	size_t len, size;
5
 };
6
 
7
-struct str *str_create();
8
+struct str *str_create(void);
9
 void str_free(struct str *str);
10
 void str_reset(struct str *str);
11
 int str_append_ch(struct str *str, uint32_t ch);
(-)b/textproc/scdoc/files/patch-src_string.c (+11 lines)
Added Link Here
1
--- src/string.c.orig	2021-11-13 08:04:45 UTC
2
+++ src/string.c
3
@@ -12,7 +12,7 @@ static void ensure_capacity(struct str *str, size_t le
4
 	}
5
 }
6
 
7
-struct str *str_create() {
8
+struct str *str_create(void) {
9
 	struct str *str = xcalloc(1, sizeof(struct str));
10
 	str->str = xcalloc(16, 1);
11
 	str->size = 16;

Return to bug 268277