pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/scdoc



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Tue Jan  2 17:57:29 UTC 2024

Modified Files:
        pkgsrc/textproc/scdoc: distinfo
Added Files:
        pkgsrc/textproc/scdoc/patches: patch-include_str.h patch-src_string.c

Log Message:
scdoc: mollify -Wstrict-prototypes to fix macOS build.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/textproc/scdoc/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/scdoc/patches/patch-include_str.h \
    pkgsrc/textproc/scdoc/patches/patch-src_string.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/scdoc/distinfo
diff -u pkgsrc/textproc/scdoc/distinfo:1.4 pkgsrc/textproc/scdoc/distinfo:1.5
--- pkgsrc/textproc/scdoc/distinfo:1.4  Tue Oct 26 11:23:30 2021
+++ pkgsrc/textproc/scdoc/distinfo      Tue Jan  2 17:57:28 2024
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 11:23:30 nia Exp $
+$NetBSD: distinfo,v 1.5 2024/01/02 17:57:28 schmonz Exp $
 
 BLAKE2s (scdoc-1.10.1.tar.gz) = 844030c009ec4b928ac434be87aecd0393bec6be913664a77e02b33d7afd718a
 SHA512 (scdoc-1.10.1.tar.gz) = 2b6f86263aa7d2f3b08e00772446f8ae067178b8c4ed6d53cb0ed75a8326eb96288813af5faa403a2fbcbfca131adf6e2ca614bcac90c6c3bf979b6c15ec21ad
 Size (scdoc-1.10.1.tar.gz) = 12447 bytes
 SHA1 (patch-Makefile) = db6776d997201358c442277f8ca07ee4858e6697
+SHA1 (patch-include_str.h) = 1fc9ea0660a25eb3327ba61783c8c78cb647ce52
+SHA1 (patch-src_string.c) = ee04f0a2cf8ed3a6f430b6ed4a082c26ab9e8414

Added files:

Index: pkgsrc/textproc/scdoc/patches/patch-include_str.h
diff -u /dev/null pkgsrc/textproc/scdoc/patches/patch-include_str.h:1.1
--- /dev/null   Tue Jan  2 17:57:29 2024
+++ pkgsrc/textproc/scdoc/patches/patch-include_str.h   Tue Jan  2 17:57:29 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-include_str.h,v 1.1 2024/01/02 17:57:29 schmonz Exp $
+
+Satisfy -Wstrict-prototypes to fix at least macOS build.
+
+--- include/str.h.orig 2020-02-14 21:38:03.000000000 +0000
++++ 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);
Index: pkgsrc/textproc/scdoc/patches/patch-src_string.c
diff -u /dev/null pkgsrc/textproc/scdoc/patches/patch-src_string.c:1.1
--- /dev/null   Tue Jan  2 17:57:29 2024
+++ pkgsrc/textproc/scdoc/patches/patch-src_string.c    Tue Jan  2 17:57:29 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_string.c,v 1.1 2024/01/02 17:57:29 schmonz Exp $
+
+Satisfy -Wstrict-prototypes to fix at least macOS build.
+
+--- src/string.c.orig  2020-02-14 21:38:03.000000000 +0000
++++ src/string.c
+@@ -15,7 +15,7 @@ static int ensure_capacity(struct str *s
+       return 1;
+ }
+ 
+-struct str *str_create() {
++struct str *str_create(void) {
+       struct str *str = calloc(sizeof(struct str), 1);
+       str->str = malloc(16);
+       str->size = 16;



Home | Main Index | Thread Index | Old Index