summaryrefslogtreecommitdiff
path: root/textproc/scdoc/files/patch-clang15
blob: 8dd4a4a5e6f8207145d53379acb0372fbd4094d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
https://lists.sr.ht/~sircmpwn/public-inbox/patches/37432

--- include/str.h.orig	2021-11-13 08:04:45 UTC
+++ include/str.h
@@ -7,7 +7,7 @@ struct str {
 	size_t len, size;
 };
 
-struct str *str_create();
+struct str *str_create(void);
 void str_free(struct str *str);
 void str_reset(struct str *str);
 int str_append_ch(struct str *str, uint32_t ch);
--- src/string.c.orig	2021-11-13 08:04:45 UTC
+++ src/string.c
@@ -12,7 +12,7 @@ static void ensure_capacity(struct str *str, size_t le
 	}
 }
 
-struct str *str_create() {
+struct str *str_create(void) {
 	struct str *str = xcalloc(1, sizeof(struct str));
 	str->str = xcalloc(16, 1);
 	str->size = 16;