You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
rhyme: update fatalError signature
This commit is contained in:
committed by
tobypeterson
parent
879ca1b6aa
commit
ee47e7d519
@@ -4,7 +4,7 @@ PortSystem 1.0
|
||||
|
||||
name rhyme
|
||||
version 0.9
|
||||
revision 6
|
||||
revision 7
|
||||
checksums rmd160 5049ee3f2ad6d56d03fd28a7399129213f4ca808 \
|
||||
sha256 11d4862cc3adfc18ea83ca233854c562fcebdc838fa7fb62de6ef3f63f992bd4 \
|
||||
size 896013
|
||||
@@ -26,7 +26,8 @@ depends_lib port:gdbm \
|
||||
port:ncurses \
|
||||
port:readline
|
||||
|
||||
patchfiles patch-Makefile.diff
|
||||
patchfiles patch-Makefile.diff \
|
||||
patch-fatalError.diff
|
||||
|
||||
use_configure no
|
||||
variant universal {}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
--- setup.h.orig 2002-01-14 12:23:07
|
||||
+++ setup.h 2025-03-03 16:01:15
|
||||
@@ -27,7 +27,7 @@
|
||||
#define FLAG_MERGED 4
|
||||
|
||||
/*something to print if gdbm dies horribly*/
|
||||
-void fatalError(char s[]);
|
||||
+void fatalError(const char *s);
|
||||
|
||||
/*The wordfile, rhymefile and multiplefile are set by this function
|
||||
The flags are the bits set by the command-line arguments.
|
||||
--- setup.c.orig 2002-01-14 12:23:22
|
||||
+++ setup.c 2025-03-03 16:00:50
|
||||
@@ -16,8 +16,8 @@
|
||||
{0,0,0,0}
|
||||
};
|
||||
|
||||
-void fatalError(char s[]) {
|
||||
- fprintf(stderr, s);
|
||||
+void fatalError(const char *s) {
|
||||
+ fprintf(stderr, "%s", s);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user